[dovecot-cvs] dovecot/src/lib-index/mbox mbox-sync.c,1.22,1.23

cras at procontrol.fi cras at procontrol.fi
Wed Nov 20 20:28:17 EET 2002


Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv28054

Modified Files:
	mbox-sync.c 
Log Message:
syncing doesn't do anything now if we know we're already synced



Index: mbox-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-sync.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- mbox-sync.c	12 Nov 2002 03:58:02 -0000	1.22
+++ mbox-sync.c	20 Nov 2002 18:28:15 -0000	1.23
@@ -78,6 +78,11 @@
 	if (changes != NULL)
 		*changes = FALSE;
 
+	if (index->mbox_sync_counter == index->mbox_lock_counter) {
+		/* we've already synced in this locking session */
+		return TRUE;
+	}
+
 	if (index->fd == -1) {
 		/* anon-mmaped */
 		index_mtime = index->file_sync_stamp;




More information about the dovecot-cvs mailing list