Omer Frenkel has posted comments on this change.

Change subject: core: change shared-lock msg of AddVmFromTemplate
......................................................................


Patch Set 1: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
Line 1528:         while(iter.hasNext()) {
Line 1529:             
result.addAll(Arrays.asList(iter.next().split("(?=\\$)")));
Line 1530:         }
Line 1531:         return result;
Line 1532:     }
mmm
not sure what will happen in this scenario: few (different) commands take 
shared lock, and each provide different paramer, will it not be mixed? 
for example:
"template is locked because of vm {x}","vm1","template is locked because it is 
copied to export domain {y}","exportDomain"

and the user will get "template is locked because of vm exportDomain"
Line 1533: 
Line 1534:     private EngineLock buildLock() {
Line 1535:         EngineLock lock = null;
Line 1536:         Map<String, Pair<String, String>> exclusiveLocks = 
getExclusiveLocks();


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I9fcc4d70bd5ca28c87ca7834bf2b699da5140fc5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to