# HG changeset patch # User Timo Sirainen # Date 1102380231 -7200 # Node ID 05ae72649fd0e53c08bcaeeaf7a98781518a55ee # Parent 0e7a0e204f5d2d7b99788c1ed4ace7464ef68ca4 Cache compression didn't work with lock_method = dotlock. diff -r 0e7a0e204f5d -r 05ae72649fd0 src/lib-index/mail-cache-compress.c --- a/src/lib-index/mail-cache-compress.c Tue Dec 07 02:41:38 2004 +0200 +++ b/src/lib-index/mail-cache-compress.c Tue Dec 07 02:43:51 2004 +0200 @@ -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;