dovecot-2.0: If all flag changes are dropped, make sure we don't...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 14 01:26:35 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/e852cb4c5cd2
changeset: 9617:e852cb4c5cd2
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 13 18:26:25 2009 -0400
description:
If all flag changes are dropped, make sure we don't write anything to transaction log.
diffstat:
1 file changed, 3 insertions(+)
src/lib-index/mail-index-transaction-finish.c | 3 +++
diffs (13 lines):
diff -r 1f8629349b41 -r e852cb4c5cd2 src/lib-index/mail-index-transaction-finish.c
--- a/src/lib-index/mail-index-transaction-finish.c Mon Jul 13 18:21:19 2009 -0400
+++ b/src/lib-index/mail-index-transaction-finish.c Mon Jul 13 18:26:25 2009 -0400
@@ -114,6 +114,9 @@ mail_index_transaction_finish_flag_updat
}
i = mail_transaction_drop_range(t, updates[i], i, &keeps);
}
+
+ if (array_count(&t->updates) == 0)
+ array_free(&t->updates);
}
static bool
More information about the dovecot-cvs
mailing list