[dovecot/core] abc063: lib-storage: Don't stop vsize calculation on expun...

GitHub noreply at github.com
Thu Feb 16 15:30:10 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: abc063522f0285b2fc5128f26f4e2e5172a00e5c
      https://github.com/dovecot/core/commit/abc063522f0285b2fc5128f26f4e2e5172a00e5c
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-16 (Thu, 16 Feb 2017)

  Changed paths:
    M src/lib-storage/index/index-mailbox-size.c

  Log Message:
  -----------
  lib-storage: Don't stop vsize calculation on expunged mails.

I don't know why I added such logic there in the first place. If we just
skip the expunged mails, the end result should still be correct and
usable when cached.


  Commit: a758be690d736655ed7c1e3dfb46d3aaf4dd5db2
      https://github.com/dovecot/core/commit/a758be690d736655ed7c1e3dfb46d3aaf4dd5db2
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-16 (Thu, 16 Feb 2017)

  Changed paths:
    M src/lib-storage/index/index-mailbox-size.c
    M src/lib-storage/mail-storage-settings.c
    M src/lib-storage/mail-storage-settings.h
    M src/plugins/quota/quota-count.c

  Log Message:
  -----------
  lib-storage: Add mail_vsize_bg_after_count setting.

If folder vsize calculation requires opening more than this many mails from
disk (i.e. mail sizes aren't in cache already), return failure and finish
the calculation via indexer process.

This should be used like:

protocol !indexer-worker {
  mail_vsize_bg_after_count = 10
}


  Commit: abd812f275c5366feea20f25081d1c9296e552ef
      https://github.com/dovecot/core/commit/abd812f275c5366feea20f25081d1c9296e552ef
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-16 (Thu, 16 Feb 2017)

  Changed paths:
    M src/lib-storage/index/index-mailbox-size.c

  Log Message:
  -----------
  lib-storage: Update vsize header after sync only if sizes are cached.

The result isn't needed yet in that case, so if it's slow to get the sizes
it might as well be delayd until later. This is especially useful when
indexer-worker triggers FTS indexing. The vsizes can be added to index
after the mail is already read for FTS. Without this change the vsize
update would first open all the mails and then the FTS indexing would
open all the mails a second time.


Compare: https://github.com/dovecot/core/compare/98d09d4454e9...abd812f275c5


More information about the dovecot-cvs mailing list