Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8533:70b0597e2bb5 HEAD
Die if trying to sync mailbox while transactions are open.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 13 Dec 2008 12:52:53 +0200 |
parents | 3e1b401dd543 |
children | 4693c9f72baa |
files | src/lib-storage/mail-storage.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 * 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); }