Mercurial > dovecot > core-2.2
changeset 23000:88fe34445780
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).
author | Timo Sirainen <timo.sirainen@open-xchange.com> |
---|---|
date | Wed, 16 Jan 2019 01:00:22 +0200 |
parents | cee60b46c2f4 |
children | fb58bb0c8b85 |
files | src/lib-storage/list/mailbox-list-index.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index.c Tue Oct 02 10:22:11 2018 +0300 +++ b/src/lib-storage/list/mailbox-list-index.c Wed Jan 16 01:00:22 2019 +0200 @@ -961,7 +961,7 @@ 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); }