Arik Hadas has posted comments on this change.

Change subject: core: managed removal of memory volumes in negative flows
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.ovirt.org/#/c/23222/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/memory/MemoryImageRemover.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/memory/MemoryImageRemover.java:

Line 66: 
Line 67:     protected boolean removeMemoryVolumes(Set<String> memoryVolumes) {
Line 68:         boolean result = true;
Line 69:         for (String memoryVols : memoryVolumes) {
Line 70:             result &= removeMemoryVolume(memoryVols);
> worth a comment that we want to continue even if one failed because this co
Done
Line 71:         }
Line 72: 
Line 73:         return result;
Line 74:     }


http://gerrit.ovirt.org/#/c/23222/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/memory/MemoryImageRemoverOnDataDomain.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/memory/MemoryImageRemoverOnDataDomain.java:

Line 49:             return false;
Line 50:         }
Line 51: 
Line 52:         // from RemoveVmCommand this command is called before the 
snapshot
Line 53:         // is removed from the DB (because it is transactive command)
> comment is a little confusing, maybe change to
Done
Line 54:         return enclosingCommand.getParameters().getParentCommand() == 
VdcActionType.RemoveVm ?
Line 55:                 
getSnapshotDao().getNumOfSnapshotsByMemory(memoryVolume) == 0
Line 56:                 : 
getSnapshotDao().getNumOfSnapshotsByMemory(memoryVolume) == 1;
Line 57:     }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib4b270ec0e1ab41cae34459dde9f9cf47b1b5bdf
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <aha...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Arik Hadas <aha...@redhat.com>
Gerrit-Reviewer: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to