dovecot-2.2: lib-storage: Don't try to update index vsize if syn...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 28 12:12:00 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/12205b780996
changeset: 19241:12205b780996
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 28 15:10:02 2015 +0300
description:
lib-storage: Don't try to update index vsize if syncing failed.

diffstat:

 src/lib-storage/index/index-sync.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r ecad47a83d1d -r 12205b780996 src/lib-storage/index/index-sync.c
--- a/src/lib-storage/index/index-sync.c	Mon Sep 28 15:00:04 2015 +0300
+++ b/src/lib-storage/index/index-sync.c	Mon Sep 28 15:10:02 2015 +0300
@@ -336,7 +336,8 @@
 		array_free(&ctx->all_flag_update_uids);
 
 	/* update vsize header if wanted */
-	index_mailbox_vsize_update_appends(_ctx->box);
+	if (ret == 0)
+		index_mailbox_vsize_update_appends(_ctx->box);
 	i_free(ctx);
 	return ret;
 }


More information about the dovecot-cvs mailing list