comparison src/lib-index/mail-cache-transaction.c @ 6655:9ffa528c257c HEAD

Last change broke cache file creation completely.
author Timo Sirainen <tss@iki.fi>
date Fri, 02 Nov 2007 16:32:31 +0200
parents f3ca0b9e3628
children b6c76ea86e2a
comparison
equal deleted inserted replaced
6654:ac0e7f713d70 6655:9ffa528c257c
783 return; 783 return;
784 784
785 if (ctx->cache_file_seq == 0) { 785 if (ctx->cache_file_seq == 0) {
786 if (!ctx->cache->opened) 786 if (!ctx->cache->opened)
787 (void)mail_cache_open_and_verify(ctx->cache); 787 (void)mail_cache_open_and_verify(ctx->cache);
788 if (MAIL_CACHE_IS_UNUSABLE(ctx->cache)) 788
789 return; 789 if (!MAIL_CACHE_IS_UNUSABLE(ctx->cache))
790 790 ctx->cache_file_seq = ctx->cache->hdr->file_seq;
791 ctx->cache_file_seq = ctx->cache->hdr->file_seq;
792 } 791 }
793 792
794 file_field = ctx->cache->field_file_map[field_idx]; 793 file_field = ctx->cache->field_file_map[field_idx];
795 if (file_field == (uint32_t)-1) { 794 if (file_field == (uint32_t)-1) {
796 /* we'll have to add this field to headers */ 795 /* we'll have to add this field to headers */