dovecot-2.2: lib-storage: When deleting mailbox, finish the expu...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 30 11:37:37 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/0279f9d2bd81
changeset: 17542:0279f9d2bd81
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 30 14:34:00 2014 +0300
description:
lib-storage: When deleting mailbox, finish the expunges before marking mailbox deleted.
This decreases the amount of time the mailbox is visible but not accessible.
diffstat:
src/lib-storage/index/index-storage.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 2b1c5a96b416 -r 0279f9d2bd81 src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Mon Jun 30 14:31:47 2014 +0300
+++ b/src/lib-storage/index/index-storage.c Mon Jun 30 14:34:00 2014 +0300
@@ -667,7 +667,10 @@
mailbox_transaction_rollback(&t);
return -1;
}
- return mailbox_transaction_commit(&t);
+ if (mailbox_transaction_commit(&t) < 0)
+ return -1;
+ /* sync to actually perform the expunges */
+ return mailbox_sync(box, 0);
}
int index_storage_mailbox_delete_pre(struct mailbox *box)
More information about the dovecot-cvs
mailing list