Martin Peřina has uploaded a new change for review. Change subject: engine: Fixes rollback handling in ChangeVDSClusterCommand ......................................................................
engine: Fixes rollback handling in ChangeVDSClusterCommand Fixes rollback handling in ChangeVDSClusterCommand, so when an execption is occured during command, there will not be created two rows for the host in Hosts list Change-Id: I1866901d73b1a3270d51b7b261ce5acf0ea67ce9 Bug-Url: https://bugzilla.redhat.com/984927 Signed-off-by: Martin Perina <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java 1 file changed, 0 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/73/17973/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java index 7b88110..9b0f7f9 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java @@ -23,7 +23,6 @@ import org.ovirt.engine.core.common.vdscommands.gluster.AddGlusterServerVDSParameters; import org.ovirt.engine.core.common.vdscommands.gluster.RemoveGlusterServerVDSParameters; import org.ovirt.engine.core.compat.Guid; -import org.ovirt.engine.core.compat.TransactionScopeOption; import org.ovirt.engine.core.dal.dbbroker.DbFacade; import org.ovirt.engine.core.dao.gluster.GlusterDBUtils; import org.ovirt.engine.core.utils.ObjectIdentityChecker; @@ -138,9 +137,6 @@ return null; } }); - - getParameters().setCompensationEnabled(true); - getParameters().setTransactionScopeOption(TransactionScopeOption.RequiresNew); if (targetStoragePool != null && (getSourceCluster().getStoragePoolId()== null || !targetStoragePool.getId().equals(getSourceCluster().getStoragePoolId()))) { -- To view, visit http://gerrit.ovirt.org/17973 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1866901d73b1a3270d51b7b261ce5acf0ea67ce9 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Peřina <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
