[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-lock.c, 1.21,
1.22
cras at dovecot.org
cras at dovecot.org
Sun Feb 5 14:46:11 EET 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv27670/lib-storage/index/mbox
Modified Files:
mbox-lock.c
Log Message:
Removed immediate_stale_timeout and changed the stale_timeout behavior to
check both dotlock and the file it protects, and overwrite the lock file
whenever neither of them have been modified for stale_timeout seconds (ie.
also immediately if their timestamps are old enough).
Index: mbox-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-lock.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- mbox-lock.c 13 Jan 2006 20:26:37 -0000 1.21
+++ mbox-lock.c 5 Feb 2006 12:46:09 -0000 1.22
@@ -25,7 +25,7 @@
/* lock timeout */
#define DEFAULT_LOCK_TIMEOUT (10*60)
/* assume stale dotlock if mbox file hasn't changed for n seconds */
-#define DEFAULT_DOTLOCK_CHANGE_TIMEOUT (5*60)
+#define DEFAULT_DOTLOCK_CHANGE_TIMEOUT (10)
enum mbox_lock_type {
MBOX_LOCK_DOTLOCK,
More information about the dovecot-cvs
mailing list