Ver código fonte

ZOOKEEPER-456. CREATOR_ALL_ACL has unnecessary PERMS.ADMIN in the declartion. (phunt via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@903045 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 15 anos atrás
pai
commit
6492c7b6c4
2 arquivos alterados com 6 adições e 4 exclusões
  1. 3 0
      CHANGES.txt
  2. 3 4
      src/java/main/org/apache/zookeeper/ZooDefs.java

+ 3 - 0
CHANGES.txt

@@ -254,6 +254,9 @@ IMPROVEMENTS:
   ZOOKEEPER-612. Make Zookeeper C client can be compiled by gcc of early
   version (qian via mahadev)
 
+  ZOOKEEPER-456. CREATOR_ALL_ACL has unnecessary PERMS.ADMIN in the
+  declartion. (phunt via mahadev)
+
 NEW FEATURES:
   ZOOKEEPER-539. generate eclipse project via ant target. (phunt via mahadev)
 

+ 3 - 4
src/java/main/org/apache/zookeeper/ZooDefs.java

@@ -43,7 +43,7 @@ public class ZooDefs {
         public final int setACL = 7;
 
         public final int getChildren = 8;
-        
+
         public final int sync = 9;
 
         public final int ping = 11;
@@ -51,7 +51,7 @@ public class ZooDefs {
         public final int getChildren2 = 12;
 
         public final int auth = 100;
-        
+
         public final int setWatches = 101;
 
         public final int createSession = -10;
@@ -97,8 +97,7 @@ public class ZooDefs {
          * This ACL gives the creators authentication id's all permissions.
          */
         public final ArrayList<ACL> CREATOR_ALL_ACL = new ArrayList<ACL>(
-                Collections.singletonList(new ACL(Perms.ALL | Perms.ADMIN,
-                        AUTH_IDS)));
+                Collections.singletonList(new ACL(Perms.ALL, AUTH_IDS)));
 
         /**
          * This ACL gives the world the ability to read.