[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c,1.42,1.43

cras at procontrol.fi cras at procontrol.fi
Sun Jun 15 07:42:31 EEST 2003


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

Modified Files:
	mbox-save.c 
Log Message:
Only NOOP and CHECK will now always do a real mailbox sync. Other commands
will also do it but no often than once in 5 seconds. Also with maildir we
don't anymore try to sync it before running commands since syncing is now
done automatically whenever we try to access a file that doesn't exist.



Index: mbox-save.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- mbox-save.c	23 May 2003 14:40:50 -0000	1.42
+++ mbox-save.c	15 Jun 2003 03:42:29 -0000	1.43
@@ -325,7 +325,8 @@
 		return NULL;
 	}
 
-	if (!index_storage_sync_and_lock(ibox, FALSE, MAIL_LOCK_EXCLUSIVE))
+	if (!index_storage_sync_and_lock(ibox, FALSE, TRUE,
+					 MAIL_LOCK_EXCLUSIVE))
 		return NULL;
 
 	ctx = i_new(struct mail_save_context, 1);



More information about the dovecot-cvs mailing list