ofri masad has posted comments on this change. Change subject: core: Add notification to quota resize (#848289) ......................................................................
Patch Set 8: (3 inline comments) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/QuotaCRUDCommand.java Line 35: public void setQuota(Quota quota) { Line 36: this.quota = quota; Line 37: } Line 38: Line 39: protected void refreshQuotaFromDB() { Done Line 40: this.quota = getQuotaDAO().getById(getQuotaId()); Line 41: } Line 42: Line 43: protected boolean checkQuotaValidationCommon(Quota quota, List<String> messages) { .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateQuotaCommand.java Line 47: } Line 48: Line 49: @Override Line 50: protected void executeCommand() { Line 51: beforeUpdate(); Done Line 52: removeQuotaFromCache(); Line 53: setQuotaParameter(); Line 54: QuotaDAO dao = getQuotaDAO(); Line 55: dao.update(getParameters().getQuota()); Line 53: setQuotaParameter(); Line 54: QuotaDAO dao = getQuotaDAO(); Line 55: dao.update(getParameters().getQuota()); Line 56: getReturnValue().setSucceeded(true); Line 57: afterUpdate(); Done Line 58: } Line 59: Line 60: protected void removeQuotaFromCache() { Line 61: QuotaManager.getInstance().removeQuotaFromCache(getQuota().getStoragePoolId(), getQuota().getId()); -- To view, visit http://gerrit.ovirt.org/7824 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I5ef7f831120cafa10aa55e51db0270915b221c9f Gerrit-PatchSet: 8 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: ofri masad <oma...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: ofri masad <oma...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches