[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-sync.c, 1.6,
1.7
cras at dovecot.org
cras at dovecot.org
Sun Feb 5 14:46:10 EET 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv27670/lib-storage/index/dbox
Modified Files:
dbox-sync.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: dbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-sync.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- dbox-sync.c 28 Jan 2006 22:05:48 -0000 1.6
+++ dbox-sync.c 5 Feb 2006 12:46:08 -0000 1.7
@@ -253,6 +253,9 @@
unsigned int first_flag_offset;
int ret;
+ if (ctx->mbox->file->keyword_count == 0)
+ return 0;
+
t_push();
keyword_array = t_malloc(ctx->mbox->file->keyword_count);
keyword_mask = t_malloc(ctx->mbox->file->keyword_count);
More information about the dovecot-cvs
mailing list