changeset 2949:05ae72649fd0 HEAD

Cache compression didn't work with lock_method = dotlock.
author Timo Sirainen <tss@iki.fi>
date Tue, 07 Dec 2004 02:43:51 +0200
parents 0e7a0e204f5d
children 30110ac226a7
files src/lib-index/mail-cache-compress.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;