Alon Bar-Lev has posted comments on this change.

Change subject: engine: remove the use of @LockIdNameAttribute
......................................................................


Patch Set 8:

(2 comments)

http://gerrit.ovirt.org/#/c/25944/8/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/LockProperties.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/LockProperties.java:

Line 2: 
Line 3: public class LockProperties {
Line 4: 
Line 5:     public static enum Scope { Execution, Manual, None }
Line 6:     private Scope scope = Scope.None;
> I don't think the terminology is right - it's not about scoping but about d
It is scoping, as automatic release == scope.

Nobody should touch lock that is declared as automatic scope, this will be 
consider an implementation back (although will probably work).

If you are to touch(release) the lock manually you set it into manual scope.
Line 7:     private boolean wait = true;
Line 8: 
Line 9:     private LockProperties() {}
Line 10: 


Line 3: public class LockProperties {
Line 4: 
Line 5:     public static enum Scope { Execution, Manual, None }
Line 6:     private Scope scope = Scope.None;
Line 7:     private boolean wait = true;
> why the default value is true? it used to be false and it made sense to set
Locks are usually default to wait, this is what expected by users(developers), 
see java locks or any other lock.

Please detach from what we have, and review as a new developer that joins the 
project.
Line 8: 
Line 9:     private LockProperties() {}
Line 10: 
Line 11:     public boolean isWait() {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie57e4f7c00ebcd6a4e9e0e61b7d26f50f2d00858
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to