Liron Aravot has posted comments on this change.
Change subject: core: add locks to VmTemplate commands (#761515)
......................................................................
Patch Set 5: (1 inline comment)
all comments were answered on patch set 3
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmFromTemplateCommand.java
Line 49: @Override
Line 50: protected void ExecuteVmCommand() {
Line 51: super.ExecuteVmCommand();
Line 52: // override template id to blank
Line 53: getParameters().OriginalTemplate = getVm().getvmt_guid();
Done
Line 54:
VmTemplateHandler.lockVmTemplateInTransaction(getParameters().OriginalTemplate,
getCompensationContext());
Line 55: getVm().setvmt_guid(VmTemplateHandler.BlankVmTemplateId);
Line 56:
getVm().getStaticData().setQuotaId(getParameters().getVmStaticData().getQuotaId());
Line 57:
DbFacade.getInstance().getVmStaticDAO().update(getVm().getStaticData());
--
To view, visit http://gerrit.ovirt.org/8013
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I2d5b6518bbf19077ae5822b9359a6147c87d0f46
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches