xiaoyuyao commented on a change in pull request #847: HDDS-1539. Implement
addAcl,removeAcl,setAcl,getAcl for Volume. Contributed Ajay Kumar.
URL: https://github.com/apache/hadoop/pull/847#discussion_r287901527
##########
File path:
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OzoneAcl.java
##########
@@ -56,8 +58,8 @@ public OzoneAcl() {
*/
public OzoneAcl(ACLIdentityType type, String name, ACLType acl) {
this.name = name;
- this.rights = new ArrayList<>();
- this.rights.add(acl);
+ this.aclBitSet = new BitSet(ACLType.values().length);
Review comment:
Use ACLType#getNoOfAcls()?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]