sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject sentry git commit: SENTRY-1727: HMSPathsDumper.cloneToEntry should set authzObjToEntries properly (Lei Xu, Reviewed by: Hao Hao)
Date Thu, 27 Apr 2017 20:31:33 GMT
Repository: sentry
Updated Branches:
  refs/heads/master 0773053d6 -> a81591e6e


SENTRY-1727: HMSPathsDumper.cloneToEntry should set authzObjToEntries properly (Lei Xu, Reviewed
by: Hao Hao)

Change-Id: Ic73bcacca592b958c0023a69da5d2907ffb1184b


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

Branch: refs/heads/master
Commit: a81591e6ea33047daab600b726ebbdee152fb022
Parents: 0773053
Author: hahao <hao.hao@cloudera.com>
Authored: Thu Apr 27 13:29:11 2017 -0700
Committer: hahao <hao.hao@cloudera.com>
Committed: Thu Apr 27 13:31:21 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/a81591e6/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java
b/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java
index e759ff1..7dfb5fa 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/HMSPathsDumper.java
@@ -120,7 +120,8 @@ public class HMSPathsDumper implements AuthzPathsDumper<HMSPaths>
{
         for (String authzObj: child.getAuthzObjs()) {
           Set<Entry> paths = authzObjToPath.get(authzObj);
           if (paths == null) {
-            paths = new HashSet<Entry>();
+            paths = new HashSet<>();
+            authzObjToPath.put(authzObj, paths);
           }
           paths.add(child);
         }


Mime
View raw message