Liron Ar has posted comments on this change.
Change subject: [wip] core: refactor MoveOrCopy/RemoveImage commands and
parameters
......................................................................
Patch Set 2: (3 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveImageCommand.java
Line 82: getParameters().getStorageDomainId()));
Line 83:
Line 84: if (getParameters().getPerformDbOperationsStage() ==
PerformOperationStage.EXECUTION
Line 85: && getParameters().getParentCommand() !=
VdcActionType.RemoveVmFromImportExport
Line 86: && getParameters().getParentCommand() !=
VdcActionType.RemoveVmTemplateFromImportExport) {
because changing the removal from export domain isn't related to this change -
it's require further change (as they call RemoveVM/RemoveVMTemlate which we
used also for removing from non-export domain)
Line 87: removeImageFromDB(false);
Line 88: }
Line 89: } else {
Line 90: log.warn("DiskImage is null, nothing to remove");
Line 287: @Override
Line 288: protected VDSReturnValue performImageVdsmOperation() {
Line 289: boolean isShouldBeLocked =
getParameters().getPerformDbOperationsStage() != PerformOperationStage.NEVER
Line 290: && getParameters().getParentCommand() !=
VdcActionType.RemoveVmFromImportExport
Line 291: && getParameters().getParentCommand() !=
VdcActionType.RemoveVmTemplateFromImportExport;
same answer, it's not part of this change.
Line 292: if (isShouldBeLocked) {
Line 293: // the image status should be set to ILLEGAL, so that in
case compensation runs the image status will
Line 294: // be revert to be ILLEGAL, as we can't tell whether the
task started on vdsm side or not.
Line 295: getDiskImage().setImageStatus(ImageStatus.ILLEGAL);
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/PerformOperationStage.java
Line 1: package org.ovirt.engine.core.common.businessentities;
Line 2:
Line 3: public enum PerformOperationStage {
i have no problem to add some explanation here, what would u want to see in it?
Line 4: EXECUTION, TASKS_ENDED, NEVER;
--
To view, visit http://gerrit.ovirt.org/12689
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I92036258512d385b7296e1f75d9dcebfdd129d4a
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Anonymous Coward #1000370
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches