From ec0105e124d34a0dba6b657e8fd4fc2bc3cb8c98 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 20 Jan 2016 12:55:57 +0200 Subject: [PATCH] lib-storage: Don't set internal error to storage when there's nothing to sync. This may also wrongly overwrite an existing error. --- src/lib-storage/index/index-storage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib-storage/index/index-storage.c b/src/lib-storage/index/index-storage.c index a370f5dd5f..339ebbb7d1 100644 --- a/src/lib-storage/index/index-storage.c +++ b/src/lib-storage/index/index-storage.c @@ -999,7 +999,8 @@ int index_storage_expunged_sync_begin(struct mailbox *box, ret = mail_index_sync_begin(box->index, ctx_r, view_r, trans_r, flags); if (ret <= 0) { - mailbox_set_index_error(box); + if (ret < 0) + mailbox_set_index_error(box); index_storage_expunging_deinit(box); return ret; } -- 2.47.3