hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject [08/18] hadoop git commit: HADOOP-15876. Use keySet().removeAll() to remove multiple keys from Map in AzureBlobFileSystemStore
Date Wed, 14 Nov 2018 13:07:43 GMT
HADOOP-15876. Use keySet().removeAll() to remove multiple keys from Map in AzureBlobFileSystemStore

Contributed by Da Zhou.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a13be203
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a13be203
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a13be203

Branch: refs/heads/HDFS-13891
Commit: a13be203b7877ba56ef63aac4a2e65d4e1a4adbc
Parents: fcbd205
Author: Da Zhou <da.zhou@microsoft.com>
Authored: Tue Nov 13 21:46:18 2018 +0000
Committer: Steve Loughran <stevel@apache.org>
Committed: Tue Nov 13 21:46:18 2018 +0000

----------------------------------------------------------------------
 .../org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a13be203/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
----------------------------------------------------------------------
diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
index bfdbba8..f300a9a 100644
--- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
+++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
@@ -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);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message