From: Timo Sirainen Date: Tue, 15 Jan 2019 23:00:22 +0000 (+0200) Subject: LAYOUT=index: Fix rebuilding mailbox list index on force-resync X-Git-Tag: 2.2.36.1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31b5e884e889b5c05250eadda5ca73ba1874306a;p=thirdparty%2Fdovecot%2Fcore.git LAYOUT=index: Fix rebuilding mailbox list index on force-resync The if-check was a bit confusing because have_backend==TRUE means that there the mailbox list index is only an index, while have_backend==FALSE means that the mailbox list index is the only source for the list of mailboxes (= list index is the backend). --- diff --git a/src/lib-storage/list/mailbox-list-index.c b/src/lib-storage/list/mailbox-list-index.c index f96b9ff7e4..5c55eef184 100644 --- a/src/lib-storage/list/mailbox-list-index.c +++ b/src/lib-storage/list/mailbox-list-index.c @@ -961,7 +961,7 @@ mailbox_list_index_sync_init(struct mailbox *box, struct index_list_mailbox *ibox = INDEX_LIST_STORAGE_CONTEXT(box); mailbox_list_index_status_sync_init(box); - if (ibox->have_backend) + if (!ibox->have_backend) mailbox_list_index_backend_sync_init(box, flags); return ibox->module_ctx.super.sync_init(box, flags); }