[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-copy.c,1.23,1.24

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/maildir
In directory danu:/tmp/cvs-serv23333/lib-storage/index/maildir

Modified Files:
	maildir-copy.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: maildir-copy.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-copy.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- maildir-copy.c	18 May 2003 12:26:06 -0000	1.23
+++ maildir-copy.c	15 Jun 2003 03:42:29 -0000	1.24
@@ -151,7 +151,7 @@
         struct messageset_context *ctx;
 	int exdev, ret, ret2;
 
-	if (!index_storage_sync_and_lock(src, TRUE, MAIL_LOCK_SHARED))
+	if (!src->index->set_lock(src->index, MAIL_LOCK_SHARED))
 		return -1;
 
 	ctx = index_messageset_init(src, messageset, uidset, FALSE);



More information about the dovecot-cvs mailing list