sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vs...@apache.org
Subject sentry git commit: SENTRY-2047: isTableEmptyCore method in SentryStore has references to MAuthzPathsMapping when it should be generic (Arjun Mishra, reviewed by Vadim Spector)
Date Fri, 17 Nov 2017 17:00:19 GMT
Repository: sentry
Updated Branches:
  refs/heads/master 9c541adf1 -> 832e8da0f


SENTRY-2047: isTableEmptyCore method in SentryStore has references to MAuthzPathsMapping when
it should be generic (Arjun Mishra, reviewed by Vadim Spector)


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

Branch: refs/heads/master
Commit: 832e8da0f30f8db9131e30fabad5dca9f8631d21
Parents: 9c541ad
Author: Vadim Spector <vspec@cloudera.com>
Authored: Fri Nov 17 08:58:27 2017 -0800
Committer: Vadim Spector <vspec@cloudera.com>
Committed: Fri Nov 17 08:58:27 2017 -0800

----------------------------------------------------------------------
 .../apache/sentry/provider/db/service/persistent/SentryStore.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/832e8da0/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
index 7217dea..4dc2bf6 100644
--- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
+++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
@@ -3248,7 +3248,7 @@ public class SentryStore {
     // objects up to the "to" record, and will not pass any unnecessary objects that are
before
     // the "from" record.
     query.setRange(0, 1);
-    return ((List<MAuthzPathsMapping>) query.execute()).isEmpty();
+    return ((List<?>) query.execute()).isEmpty();
   }
 
   /**


Mime
View raw message