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.keySet().removeAll(defaultAclEntries.keySet());
|
||||||
aclEntries.remove(defaultAclEntry.getKey());
|
|
||||||
}
|
|
||||||
|
|
||||||
client.setAcl(AbfsHttpConstants.FORWARD_SLASH + getRelativePath(path, true),
|
client.setAcl(AbfsHttpConstants.FORWARD_SLASH + getRelativePath(path, true),
|
||||||
AbfsAclHelper.serializeAclSpec(aclEntries), eTag);
|
AbfsAclHelper.serializeAclSpec(aclEntries), eTag);
|
||||||
|
|
Loading…
Reference in New Issue