From: Aki Tuomi Date: Tue, 6 Sep 2016 13:17:13 +0000 (+0300) Subject: quota: Flush quota after recalc X-Git-Tag: 2.3.0.rc1~3081 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d3f82fe687d9ca62ed501fa741730c50c6714c4;p=thirdparty%2Fdovecot%2Fcore.git quota: Flush quota after recalc Correctly fix issue where the dict commit is left unfinished. --- diff --git a/src/plugins/quota/doveadm-quota.c b/src/plugins/quota/doveadm-quota.c index 2bdf7dc146..4a2a1fef8d 100644 --- a/src/plugins/quota/doveadm-quota.c +++ b/src/plugins/quota/doveadm-quota.c @@ -103,8 +103,11 @@ cmd_quota_recalc_run(struct doveadm_mail_cmd_context *ctx ATTR_UNUSED, 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; }