]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-index: Avoid opening .log.2 file if .log was reset
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 25 Aug 2017 12:12:06 +0000 (15:12 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 25 Aug 2017 12:47:19 +0000 (15:47 +0300)
commit4078733e58f156dcf5c472a40eb90ee1026407ff
treeaa1a041648d7bafc862484c9028b6ec188ad6b87
parentf37939033c80f14b66868cc677179f9e54d729bd
lib-index: Avoid opening .log.2 file if .log was reset

After a reset there's no point in trying to read the older log files.
This avoids trying to open .log.2 at least for newly created mailboxes
when trying to lookup log file sequence 1 (since due to some bug/feature
the log files start from sequence 2).
src/lib-index/mail-transaction-log.c