Doron Fediuck has submitted this change and it was merged.

Change subject: core: no quota refresh when vm stopped
......................................................................


core: no quota refresh when vm stopped

Currently the vm statuses on which we are calculating quota consumtion
isn't consistent with db (managed in 2 places).
In this patch I've sync-ed all places, that use vm status to decide whether
to count the quota, to a single stored proc that is being used by server
and other stored procs.

Change-Id: Ie2bd42a8431325ddbe552363b299fb80dbd7f3c5
Bug-Url: https://bugzilla.redhat.com/908834
Signed-off-by: Gilad Chaplik <[email protected]>
---
M backend/manager/dbscripts/create_functions.sql
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/StopVmCommandBase.java
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmCommand.java
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java
M 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/BaseDAODbFacade.java
M 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/QuotaDAO.java
M 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/QuotaDAODbFacadeImpl.java
7 files changed, 51 insertions(+), 14 deletions(-)

Approvals:
  Doron Fediuck: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/12014
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie2bd42a8431325ddbe552363b299fb80dbd7f3c5
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: ofri masad <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to