Greg Padgett has uploaded a new change for review.

Change subject: core: Fix Live Merge regression
......................................................................

core: Fix Live Merge regression

A change in CoCo exposed some bad code in DestroyImageCommand; fix the
async task creation to not reference the wrong command type.

Change-Id: I90e4b96cb673975c964fcb37146ad6baa510c8eb
Bug-Url: https://bugzilla.redhat.com/1141985
Signed-off-by: Greg Padgett <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/DestroyImageCommand.java
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/60/32960/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/DestroyImageCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/DestroyImageCommand.java
index c55b98b..0c822a6 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/DestroyImageCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/DestroyImageCommand.java
@@ -10,7 +10,6 @@
 import org.ovirt.engine.core.bll.utils.PermissionSubject;
 import org.ovirt.engine.core.common.VdcObjectType;
 import org.ovirt.engine.core.common.action.DestroyImageParameters;
-import org.ovirt.engine.core.common.action.VdcActionType;
 import org.ovirt.engine.core.common.asynctasks.AsyncTaskType;
 import 
org.ovirt.engine.core.common.vdscommands.DestroyImageVDSCommandParameters;
 import org.ovirt.engine.core.common.vdscommands.VDSCommandType;
@@ -36,14 +35,14 @@
 
     @Override
     protected void executeCommand() {
-        Guid taskId = persistAsyncTaskPlaceHolder(VdcActionType.DestroyImage);
+        Guid taskId = 
persistAsyncTaskPlaceHolder(getParameters().getParentCommand());
 
         VDSReturnValue vdsReturnValue = 
runVdsCommand(VDSCommandType.DestroyImage,
                 createVDSParameters());
 
         if (vdsReturnValue != null && vdsReturnValue.getCreationInfo() != 
null) {
             getParameters().setVdsmTaskIds(new ArrayList<Guid>());
-            Guid result = createTask(taskId, vdsReturnValue.getCreationInfo(), 
VdcActionType.DestroyImage,
+            Guid result = createTask(taskId, vdsReturnValue.getCreationInfo(), 
getParameters().getParentCommand(),
                             VdcObjectType.Storage, 
getParameters().getStorageDomainId());
             getReturnValue().getInternalVdsmTaskIdList().add(result);
             getReturnValue().getVdsmTaskIdList().add(result);


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

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

Reply via email to