dovecot-2.2: quota: Even if quota counting fails, commit the mai...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 3 10:58:09 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/02088971322e
changeset: 18901:02088971322e
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 03 13:55:17 2015 +0300
description:
quota: Even if quota counting fails, commit the mailbox transaction.
The only changes in the transaction are changes to dovecot.index.cache file
and we don't want to rollback those.

diffstat:

 src/plugins/quota/quota-count.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (16 lines):

diff -r f3847ac93623 -r 02088971322e src/plugins/quota/quota-count.c
--- a/src/plugins/quota/quota-count.c	Fri Jul 03 13:54:18 2015 +0300
+++ b/src/plugins/quota/quota-count.c	Fri Jul 03 13:55:17 2015 +0300
@@ -69,11 +69,7 @@
 			vname, mailbox_get_last_error(box, NULL));
 		ret = -1;
 	}
-
-	if (ret < 0)
-		mailbox_transaction_rollback(&trans);
-	else
-		(void)mailbox_transaction_commit(&trans);
+	(void)mailbox_transaction_commit(&trans);
 
 	mailbox_free(&box);
 	return ret;


More information about the dovecot-cvs mailing list