]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mdbox: Fix assert-crash if syncing causes storage rebuild
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 1 Nov 2023 09:52:06 +0000 (11:52 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 31 Jan 2024 11:52:28 +0000 (13:52 +0200)
Fixes:
Panic: file mail-index-sync.c: line 419 (mail_index_sync_begin_to2): assertion failed: (!index->syncing)

Broken by b073a14640cab4b9e2a84a783aac2f7fd0102473

src/lib-storage/index/dbox-multi/mdbox-sync.c

index ec1853469d97e08afc1bf71ecb8ed6842ad72ee3..874c843ceb805e5fd274250e7372d16feb35cc90 100644 (file)
@@ -355,6 +355,7 @@ int mdbox_sync(struct mdbox_mailbox *mbox, enum mdbox_sync_flags flags)
 
                /* we'll need to rebuild storage.
                   try again from the beginning. */
+               (void)mdbox_map_atomic_finish(&atomic);
                return mdbox_sync(mbox, flags);
        }