dovecot-2.0: lib-storage: Added assert to transaction rollback t...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Oct 15 20:50:49 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/d2910cd43d1d
changeset: 12280:d2910cd43d1d
user: Timo Sirainen <tss at iki.fi>
date: Fri Oct 15 18:50:44 2010 +0100
description:
lib-storage: Added assert to transaction rollback to make sure all mails are freed.
The same assert was already in commit, so this should be fine.
diffstat:
src/lib-storage/index/index-transaction.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 0b509f1ee95c -r d2910cd43d1d src/lib-storage/index/index-transaction.c
--- a/src/lib-storage/index/index-transaction.c Fri Oct 15 16:24:25 2010 +0100
+++ b/src/lib-storage/index/index-transaction.c Fri Oct 15 18:50:44 2010 +0100
@@ -56,6 +56,7 @@
if (it->mailbox_ctx.save_ctx != NULL)
ibox->save_rollback(it->mailbox_ctx.save_ctx);
+ i_assert(it->mail_ref_count == 0);
it->super.rollback(t);
index_transaction_free(it);
}
More information about the dovecot-cvs
mailing list