Skip to content

Commit

Permalink
quota: Flush quota after recalc
Browse files Browse the repository at this point in the history
Correctly fix issue where the dict commit
is left unfinished.
  • Loading branch information
cmouse committed Sep 7, 2016
1 parent 8a2f21f commit 9d3f82f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/quota/doveadm-quota.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9d3f82f

Please sign in to comment.