dovecot-1.2: Die if trying to sync mailbox while transactions ar...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 13 12:52:57 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/70b0597e2bb5
changeset: 8533:70b0597e2bb5
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 13 12:52:53 2008 +0200
description:
Die if trying to sync mailbox while transactions are open.

diffstat:

1 file changed, 4 insertions(+)
src/lib-storage/mail-storage.c |    4 ++++

diffs (14 lines):

diff -r 3e1b401dd543 -r 70b0597e2bb5 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Sat Dec 13 12:52:19 2008 +0200
+++ b/src/lib-storage/mail-storage.c	Sat Dec 13 12:52:53 2008 +0200
@@ -518,6 +518,10 @@ struct mailbox_sync_context *
 struct mailbox_sync_context *
 mailbox_sync_init(struct mailbox *box, enum mailbox_sync_flags flags)
 {
+	if (box->transaction_count != 0) {
+		i_panic("Trying to sync mailbox %s with open transactions",
+			box->name);
+	}
 	return box->v.sync_init(box, flags);
 }
 


More information about the dovecot-cvs mailing list