[dovecot-cvs] dovecot/src/lib-index mail-cache.c,1.60,1.61
cras at dovecot.org
cras at dovecot.org
Sun Jan 16 20:23:03 EET 2005
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv3440
Modified Files:
mail-cache.c
Log Message:
When we detect cache corruption, just mark the cache as unusable instead of
immediately closing the file and unmapping. It's too difficult to keep track
of all the possible ways in which that can break and cause "bad file
descriptor" errors and maybe crashes..
Index: mail-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- mail-cache.c 5 Dec 2004 04:10:43 -0000 1.60
+++ mail-cache.c 16 Jan 2005 18:23:01 -0000 1.61
@@ -30,7 +30,9 @@
va_list va;
(void)unlink(cache->filepath);
- mail_cache_file_close(cache);
+
+ /* mark the cache as unusable */
+ cache->hdr = NULL;
va_start(va, fmt);
t_push();
More information about the dovecot-cvs
mailing list