Mercurial > dovecot > core-2.2
changeset 20698:cc21ec4e56a3
quota: Flush quota after recalc
Correctly fix issue where the dict commit
is left unfinished.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Tue, 06 Sep 2016 16:17:13 +0300 |
parents | ba9f5ec216cd |
children | 998cb3da81d6 |
files | src/plugins/quota/doveadm-quota.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/doveadm-quota.c Tue Sep 06 16:02:26 2016 +0300 +++ b/src/plugins/quota/doveadm-quota.c Tue Sep 06 16:17:13 2016 +0300 @@ -103,8 +103,11 @@ trans.quota = quser->quota; trans.recalculate = QUOTA_RECALCULATE_FORCED; - array_foreach(&quser->quota->roots, root) + array_foreach(&quser->quota->roots, root) { (void)(*root)->backend.v.update(*root, &trans); + if ((*root)->backend.v.flush != NULL) + (*root)->backend.v.flush(*root); + } return 0; }