[dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.30,
1.31
cras at dovecot.org
cras at dovecot.org
Tue Dec 7 02:43:53 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv14827/lib-index
Modified Files:
mail-cache-compress.c
Log Message:
Cache compression didn't work with lock_method = dotlock.
Index: mail-cache-compress.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-compress.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- mail-cache-compress.c 4 Dec 2004 21:55:41 -0000 1.30
+++ mail-cache-compress.c 7 Dec 2004 00:43:51 -0000 1.31
@@ -299,6 +299,12 @@
{
int ret;
+ if (cache->index->lock_method == MAIL_INDEX_LOCK_DOTLOCK) {
+ /* we're using dotlocking, cache file creation itself creates
+ the dotlock file we need. */
+ return mail_cache_compress_locked(cache, view);
+ }
+
switch (mail_cache_lock(cache)) {
case -1:
return -1;
More information about the dovecot-cvs
mailing list