[dovecot-cvs] dovecot/src/lib-index mail-cache-sync-update.c, 1.4,
1.5
cras at dovecot.org
cras at dovecot.org
Fri Dec 3 06:58:04 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv6223
Modified Files:
mail-cache-sync-update.c
Log Message:
Don't crash if we failed to lock cache file.
Index: mail-cache-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-sync-update.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mail-cache-sync-update.c 29 Nov 2004 00:27:47 -0000 1.4
+++ mail-cache-sync-update.c 3 Dec 2004 04:57:59 -0000 1.5
@@ -31,8 +31,10 @@
if (ctx == NULL)
ctx = *ctx_r = i_new(struct mail_cache_sync_context, 1);
- if (ctx->locked || ctx->lock_failed)
+ if (ctx->locked)
return 1;
+ if (ctx->lock_failed)
+ return 0;
if (!ctx->locked) {
if ((ret = mail_cache_lock(cache)) <= 0) {
More information about the dovecot-cvs
mailing list