ofri masad has uploaded a new change for review. Change subject: core: Fix specific quota calculation (#848028) ......................................................................
core: Fix specific quota calculation (#848028) https://bugzilla.redhat.com/848028 Refix for the quota calculation mechanism that handles the specific quota. The quota cache was accumulating the percentage of usage instead of the real size. Change-Id: I9f98501043adc0e1407695c7cd6fcb64e092a3d2 Signed-off-by: Ofri Masad <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/02/7702/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java index 59e8fe3..3fd096f 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java @@ -244,7 +244,8 @@ return false; } newUsedSpecificStorageSize.get(quotaId).put(storageId, - storageUsagePercentage + storageRequestPercentage); + quotaStorage.getStorageSizeGBUsage() + + desiredStorageSizeQuotaMap.get(quotaId).get(storageId)); break; } } -- To view, visit http://gerrit.ovirt.org/7702 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9f98501043adc0e1407695c7cd6fcb64e092a3d2 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: ofri masad <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
