dovecot: If mailbox has transactions open while it's tried to be...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Aug 10 14:58:56 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/b238257f724c
changeset: 6260:b238257f724c
user: Timo Sirainen <tss at iki.fi>
date: Fri Aug 10 14:53:51 2007 +0300
description:
If mailbox has transactions open while it's tried to be closed, die here
instead of assert-crash later.
diffstat:
1 file changed, 5 insertions(+)
src/lib-storage/mail-storage.c | 5 +++++
diffs (15 lines):
diff -r f2b00d3996df -r b238257f724c src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c Fri Aug 10 14:41:55 2007 +0300
+++ b/src/lib-storage/mail-storage.c Fri Aug 10 14:53:51 2007 +0300
@@ -456,6 +456,11 @@ int mailbox_close(struct mailbox **_box)
{
struct mailbox *box = *_box;
+ if (box->transaction_count != 0) {
+ i_panic("Trying to close mailbox %s with open transactions",
+ box->name);
+ }
+
*_box = NULL;
return box->v.close(box);
}
More information about the dovecot-cvs
mailing list