Yair Zaslavsky has posted comments on this change. Change subject: core: reduce compensation scope from hibernate command ......................................................................
Patch Set 5: Looks good to me, approved (2 inline comments) Based on Omer +1, and my review - giving +2. .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java Line 1288: protected Guid createTaskInCurrentTransaction(AsyncTaskCreationInfo asyncTaskCreationInfo, Line 1289: VdcActionType parentCommand, Line 1290: VdcObjectType entityType, Line 1291: Guid... entityIds) { Line 1292: return createTaskImpl(asyncTaskCreationInfo, parentCommand, null, entityType, entityIds); Agreed Line 1293: } Line 1294: Line 1295: /** Line 1296: * Use this method in order to create task in the AsyncTaskManager in a safe way. If you use this method within a .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/HibernateVmCommand.java Line 137: if (!ret1.getSucceeded()) { Line 138: return; Line 139: } Line 140: Line 141: Guid guid1 = TransactionSupport.executeInNewTransaction( Agreed, especially due to backport issue. Line 142: new TransactionMethod<Guid>() { Line 143: @Override Line 144: public Guid runInTransaction() { Line 145: getCompensationContext().resetCompensation(); -- To view, visit http://gerrit.ovirt.org/14510 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Iec46798fc6ea01ef6b0b4701e1af5ba616edf910 Gerrit-PatchSet: 5 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Arik Hadas <aha...@redhat.com> Gerrit-Reviewer: Arik Hadas <aha...@redhat.com> Gerrit-Reviewer: Liron Ar <lara...@redhat.com> Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com> Gerrit-Reviewer: Michal Skrivanek <michal.skriva...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Ravi Nori <rn...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches