Arik Hadas has uploaded a new change for review.

Change subject: core: remove unneeded call to lock vm in db on import vm
......................................................................

core: remove unneeded call to lock vm in db on import vm

On import VM, we add the VM to the DB in ImageLocked status, so we don't
need to call VmHandler.lockVm afterwards.

Change-Id: I331f7d350bf7cd044a7b4ff64e9376963fd5ec9b
Signed-off-by: Arik Hadas <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
1 file changed, 0 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/78/32378/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
index f017fe3..5ebd222 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java
@@ -707,7 +707,6 @@
                     moveOrCopyAllImageGroups();
                 }
                 VmDeviceUtils.addImportedDevices(getVm().getStaticData(), 
getParameters().isImportAsNewEntity());
-                VmHandler.lockVm(getVm().getId());
                 if (getParameters().isImportAsNewEntity()) {
                     getParameters().setVm(getVm());
                     setVmId(getVm().getId());


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I331f7d350bf7cd044a7b4ff64e9376963fd5ec9b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to