dovecot-2.0: lib-index: Minor code cleanup.

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 5 08:18:27 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/767eb5691fe2
changeset: 11066:767eb5691fe2
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 05 08:13:36 2010 +0300
description:
lib-index: Minor code cleanup.

diffstat:

 src/lib-index/mail-cache-transaction.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 30815e260f47 -r 767eb5691fe2 src/lib-index/mail-cache-transaction.c
--- a/src/lib-index/mail-cache-transaction.c	Mon Apr 05 08:03:40 2010 +0300
+++ b/src/lib-index/mail-cache-transaction.c	Mon Apr 05 08:13:36 2010 +0300
@@ -262,8 +262,9 @@
 			return 0;
 		}
 	}
+	i_assert(!MAIL_CACHE_IS_UNUSABLE(cache));
 
-	if (!MAIL_CACHE_IS_UNUSABLE(cache) && ctx->cache_file_seq == 0) {
+	if (ctx->cache_file_seq == 0) {
 		i_assert(ctx->cache_data == NULL ||
 			 ctx->cache_data->used == 0);
 		ctx->cache_file_seq = cache->hdr->file_seq;


More information about the dovecot-cvs mailing list