]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-index: Always write tail offset the same as head offset
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 8 Apr 2022 12:59:59 +0000 (15:59 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 14 Apr 2022 06:47:55 +0000 (09:47 +0300)
commit0dd36a73e492159221293bd63fbe46bded43d0d1
treebdc81d674ea6a6dbf3c9a81093282aa64924e4fe
parentaa7d67e6d6eeca798f29b68d11cd2ef1f26ef21d
lib-index: Always write tail offset the same as head offset

The mail_index_write() must not be called unless this is safe to do.
This prevents unnecessarily reading through dovecot.index.log between
tail..head offsets, which can be expensive due to modseq calculation.
src/lib-index/mail-index-write.c