Change in ovirt-engine[master]: core: CompensationContext - add support for updated entity o...

laravot at redhat.com laravot at redhat.com
Sun May 25 07:15:27 UTC 2014


Liron Ar has submitted this change and it was merged.

Change subject: core: CompensationContext - add support for updated entity only.
......................................................................


core: CompensationContext - add support for updated entity only.

In some cases when we update an entity we would like to use the
compensation context to attempt to only update the entity to it's
previous state rather than possibly re-insert it as we perform only
updates and there might be operations that removed it intentionally
without consideration of other running operations.

Change-Id: I527d8b95b82f76fb4ce0db7e6ec967c23b759524
Signed-off-by: Liron Aravot <laravot at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/context/CompensationContext.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/context/DefaultCompensationContext.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/context/NoOpCompensationContext.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/BusinessEntitySnapshot.java
5 files changed, 27 insertions(+), 5 deletions(-)

Approvals:
  Liron Ar: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I527d8b95b82f76fb4ce0db7e6ec967c23b759524
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <laravot at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Liron Ar <laravot at redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list