Mercurial > dovecot > core-2.2
changeset 12280:d2910cd43d1d
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 15 Oct 2010 18:50:44 +0100 |
parents | 0b509f1ee95c |
children | f48b52b9427e |
files | src/lib-storage/index/index-transaction.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); }