]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-index: After recreating cache, make sure offsets are immediately updated to map
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 8 Jul 2019 15:56:12 +0000 (18:56 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 8 Jul 2019 17:03:09 +0000 (20:03 +0300)
commitc7d7bc16348d183329ab923bb1b40eb2eac16805
tree013b76488240b2045f2d9ad5a2952ee2bef60fc9
parent0c88a1229f6ee2709124ccdfb55b1ca0bd77befe
lib-index: After recreating cache, make sure offsets are immediately updated to map

They were most likely refreshed anyway before the next cache usage, but this
caused an assert-crash if the dovecot.index was also recreated in the same
sync.

Broken by e31b0637d8788885a71db2def5743ebf14c698f3

Fixes:
Panic: file mail-index-write.c: line 138 (mail_index_write): assertion failed: (file->hdr.prev_file_offset == hdr->log_file_head_offset)
src/lib-index/mail-index-sync.c