# HG changeset patch # User Timo Sirainen # Date 1194013951 -7200 # Node ID 9ffa528c257c0d0a68549f4efcd23c707975c4fa # Parent ac0e7f713d70749fd67ab9f5ece43407757c3372 Last change broke cache file creation completely. diff -r ac0e7f713d70 -r 9ffa528c257c src/lib-index/mail-cache-transaction.c --- a/src/lib-index/mail-cache-transaction.c Mon Oct 29 22:59:49 2007 +0200 +++ b/src/lib-index/mail-cache-transaction.c Fri Nov 02 16:32:31 2007 +0200 @@ -785,10 +785,9 @@ if (ctx->cache_file_seq == 0) { if (!ctx->cache->opened) (void)mail_cache_open_and_verify(ctx->cache); - if (MAIL_CACHE_IS_UNUSABLE(ctx->cache)) - return; - ctx->cache_file_seq = ctx->cache->hdr->file_seq; + if (!MAIL_CACHE_IS_UNUSABLE(ctx->cache)) + ctx->cache_file_seq = ctx->cache->hdr->file_seq; } file_field = ctx->cache->field_file_map[field_idx];