Ravi Nori has uploaded a new change for review. Change subject: engine : CoCo: Set status at end of command execution ......................................................................
engine : CoCo: Set status at end of command execution Set status of commands with out child commands and command without command callbacks at the end of command execution Change-Id: Ifc3960568993baf888a3d9f74e7fad4bd0589823 Signed-off-by: Ravi Nori <rn...@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/79/31679/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java index 9fa918e..1c6f1e7 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java @@ -1193,6 +1193,12 @@ setSucceeded(false); compensate(); } else { + if (getTaskType() == AsyncTaskType.notSupported && + getReturnValue().getVdsmTaskIdList().isEmpty() && + getCallBack() == null && + commandStatus == CommandStatus.ACTIVE) { + setCommandStatus(CommandStatus.SUCCEEDED); + } cleanUpCompensationData(); } } -- To view, visit http://gerrit.ovirt.org/31679 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifc3960568993baf888a3d9f74e7fad4bd0589823 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ravi Nori <rn...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches