[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-lock.c, 1.25, 1.25.2.1

tss at dovecot.org tss at dovecot.org
Thu Dec 28 16:51:09 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv1190/lib-storage/index/mbox

Modified Files:
      Tag: branch_1_0
	mbox-lock.c 
Log Message:
More dotlock_use_excl uses.



Index: mbox-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-lock.c,v
retrieving revision 1.25
retrieving revision 1.25.2.1
diff -u -d -r1.25 -r1.25.2.1
--- mbox-lock.c	9 Apr 2006 17:27:22 -0000	1.25
+++ mbox-lock.c	28 Dec 2006 16:51:07 -0000	1.25.2.1
@@ -249,6 +249,8 @@
         ctx->dotlock_last_stale = -1;
 
 	memset(&set, 0, sizeof(set));
+	set.use_excl_lock = (STORAGE(mbox->storage)->flags &
+			     MAIL_STORAGE_FLAG_DOTLOCK_USE_EXCL) != 0;
 	set.timeout = lock_timeout;
 	set.stale_timeout = dotlock_change_timeout;
 	set.callback = dotlock_callback;



More information about the dovecot-cvs mailing list