Alissa Bonas has posted comments on this change. Change subject: core: fix redundant storage server conn in db ......................................................................
Patch Set 4: (2 inline comments) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/RemoveStorageServerConnectionCommand.java Line 5: import org.ovirt.engine.core.bll.NonTransactiveCommandAttribute; Line 6: import org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase; Line 7: Line 8: @NonTransactiveCommandAttribute Line 9: @InternalCommandAttribute Done Line 10: public class RemoveStorageServerConnectionCommand<T extends StorageServerConnectionParametersBase> extends DisconnectStorageServerConnectionCommand { Line 11: Line 12: public RemoveStorageServerConnectionCommand(T parameters) { Line 13: super(parameters); Line 22: String connectionId = getConnection().getid(); Line 23: if(StringUtils.isNotEmpty(connectionId)) { Line 24: //remove the connection record from db Line 25: getDbFacade().getStorageServerConnectionDao().remove(connectionId); Line 26: setSucceeded(true); Done Line 27: } Line 28: } Line 29: } -- To view, visit http://gerrit.ovirt.org/11936 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Iea5468371514bd2c7bc043a6c5520e2864a09fe8 Gerrit-PatchSet: 4 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alissa Bonas <abo...@redhat.com> Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Liron Aravot <lara...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches