dovecot-2.2: lib-index: Don't assert-crash if expunge event hand...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Oct 24 23:57:39 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/1886e0616ab5
changeset: 18008:1886e0616ab5
user: Timo Sirainen <tss at iki.fi>
date: Sat Oct 25 02:56:42 2014 +0300
description:
lib-index: Don't assert-crash if expunge event handling finds that everything is already expunged.
diffstat:
src/lib-index/mail-index-sync-update.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r eb3ab11bcd86 -r 1886e0616ab5 src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c Sat Oct 25 02:53:55 2014 +0300
+++ b/src/lib-index/mail-index-sync-update.c Sat Oct 25 02:56:42 2014 +0300
@@ -243,11 +243,14 @@
unsigned int i, count;
uint32_t dest_seq1, prev_seq2, orig_rec_count;
+ range = array_get(seqs, &count);
+ if (count == 0)
+ return;
+ i_assert(count > 0);
+
map = mail_index_sync_get_atomic_map(ctx);
/* call the expunge handlers first */
- range = array_get(seqs, &count);
- i_assert(count > 0);
if (sync_expunge_handlers_init(ctx)) {
for (i = 0; i < count; i++) {
sync_expunge_call_handlers(ctx,
More information about the dovecot-cvs
mailing list