Alon Bar-Lev has posted comments on this change.

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


Patch Set 8:

(3 comments)

http://gerrit.ovirt.org/#/c/25944/8/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/RemoveStorageDomainCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/RemoveStorageDomainCommand.java:

Line 35: 
Line 36:     @Override
Line 37:     protected LockProperties getLockingPropertiesSettings() {
Line 38:         return LockProperties.create(Scope.Execution).setWait(false);
Line 39:     }
following yair's note...

so should this be:

 return super.getLockingPropertiesSettings().setWait(false);

?
Line 40: 
Line 41:     @Override
Line 42:     protected void executeCommand() {
Line 43:         final StorageDomain dom = getStorageDomain();


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;
> Right, manual/automatic scope is something that might be useful as we curre
so you have SCOPE_EXECUTION, SCOPE_ACTION, no?
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;
> Yeah, in the general use-case you're right but the locks here are IMO speci
the less people need to learn, the less bug you have. so it is better to 
confirm to well known interfaces and terms.
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 <rn...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@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: Ravi Nori <rn...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
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