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:
Da Zhou 2018-11-13 21:48:05 +00:00 committed by Steve Loughran
parent 5afd7efe24
commit 4039840510
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 1 additions and 3 deletions

View File

@ -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);