[dovecot/core] 8428e4: lib-storage: Update mailbox.recent_flags_count cor...

GitHub noreply at github.com
Tue Sep 27 11:30:14 UTC 2016


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 8428e40d8ec8b906882365f8c9a7036219c24dff
      https://github.com/dovecot/core/commit/8428e40d8ec8b906882365f8c9a7036219c24dff
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-09-27 (Tue, 27 Sep 2016)

  Changed paths:
    M src/lib-storage/mailbox-recent-flags.c

  Log Message:
  -----------
  lib-storage: Update mailbox.recent_flags_count correctly.

The counter was increased even if the UID was already in recent_flags.
This is the only place where I found that recent_flags and
recent_flags_count could become desynced (which they definitely were in
a core dump), so hopefully this fixes assert-crashes like:

Panic: file index-status.c: line 130 (index_storage_get_open_status): assertion failed: (status_r->recent <= status_r->messages)




More information about the dovecot-cvs mailing list