From: Timo Sirainen Date: Mon, 28 Sep 2015 12:10:02 +0000 (+0300) Subject: lib-storage: Don't try to update index vsize if syncing failed. X-Git-Tag: 2.2.19.rc2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07ddf7a928d6195e58dcc8810aabde97a9dfdf08;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Don't try to update index vsize if syncing failed. --- diff --git a/src/lib-storage/index/index-sync.c b/src/lib-storage/index/index-sync.c index 894e4017d4..6ec20c4ab5 100644 --- a/src/lib-storage/index/index-sync.c +++ b/src/lib-storage/index/index-sync.c @@ -336,7 +336,8 @@ int index_mailbox_sync_deinit(struct mailbox_sync_context *_ctx, 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; }