]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Try to avoid opening mailbox list index on mailbox access
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 10 Jul 2017 11:37:04 +0000 (14:37 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Mon, 10 Jul 2017 13:20:41 +0000 (16:20 +0300)
commitc29df09edced96e7cbea19a8e8afef74eec16006
tree1645fb558b6c868eabb201675671ba2e894c9efb
parente098ac1cd4ff0afb33b22cc7fd288014f4fdb0bc
lib-storage: Try to avoid opening mailbox list index on mailbox access

Perform the STATUS (and other relevant) updates only if syncing or
transaction commits changed anything. This could be optimized further to
check even more strongly whether the seen changes could cause changes to
the list index, but it's probably not worth the effort.
src/lib-storage/list/mailbox-list-index-status.c
src/lib-storage/list/mailbox-list-index-storage.h