HADOOP-15876. Use keySet().removeAll() to remove multiple keys from Map in AzureBlobFileSystemStore
Contributed by Da Zhou.
(cherry picked from commit a13be203b7
)
This commit is contained in:
parent
5afd7efe24
commit
4039840510
|
@ -678,9 +678,7 @@ public class AzureBlobFileSystemStore {
|
|||
}
|
||||
}
|
||||
|
||||
for (Map.Entry<String, String> defaultAclEntry : defaultAclEntries.entrySet()) {
|
||||
aclEntries.remove(defaultAclEntry.getKey());
|
||||
}
|
||||
aclEntries.keySet().removeAll(defaultAclEntries.keySet());
|
||||
|
||||
client.setAcl(AbfsHttpConstants.FORWARD_SLASH + getRelativePath(path, true),
|
||||
AbfsAclHelper.serializeAclSpec(aclEntries), eTag);
|
||||
|
|
Loading…
Reference in New Issue