Liron Ar has uploaded a new change for review.

Change subject: core: Fix task polling when exporting vm command with memory 
snapshots
......................................................................

core: Fix task polling when exporting vm command with memory snapshots

When exporting vm with memory snapshots that tasks are not polled,
causing to the command end method to be called possibly
too early and to the tasks to never be cleared.

Change-Id: Ief3b3a361fd0ff175f333c7ac2935ce6993ae4b2
Signed-off-by: Liron Aravot <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/96/20896/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java
index bae7210..c4db5f6 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java
@@ -317,7 +317,7 @@
             if (!vdcRetValue.getSucceeded()) {
                 throw new VdcBLLException(vdcRetValue.getFault().getError(), 
"Failed during ExportVmCommand");
             }
-            
getReturnValue().getVdsmTaskIdList().addAll(vdcRetValue.getVdsmTaskIdList());
+            
getReturnValue().getVdsmTaskIdList().addAll(vdcRetValue.getInternalVdsmTaskIdList());
 
             // copy the memory configuration (of the VM) image
             vdcRetValue = Backend.getInstance().runInternalAction(
@@ -328,7 +328,7 @@
             if (!vdcRetValue.getSucceeded()) {
                 throw new VdcBLLException(vdcRetValue.getFault().getError(), 
"Failed during ExportVmCommand");
             }
-            
getReturnValue().getVdsmTaskIdList().addAll(vdcRetValue.getVdsmTaskIdList());
+            
getReturnValue().getVdsmTaskIdList().addAll(vdcRetValue.getInternalVdsmTaskIdList());
         }
     }
 


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

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

Reply via email to