You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by pr...@apache.org on 2015/03/18 17:37:18 UTC

incubator-sentry git commit: SENTRY-669: Drop database Hive statement removes the DB privileges even if the operation fails (Ryan P via Prasad Mujumdar)

Repository: incubator-sentry
Updated Branches:
  refs/heads/master 49cf58b33 -> fd221580a


SENTRY-669: Drop database Hive statement removes the DB privileges even if the operation fails (Ryan P via Prasad Mujumdar)


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

Branch: refs/heads/master
Commit: fd221580ad11998266f3e2436f7ccfd68317cbfb
Parents: 49cf58b
Author: Prasad Mujumdar <pr...@apache.org>
Authored: Wed Mar 18 09:37:08 2015 -0700
Committer: Prasad Mujumdar <pr...@apache.org>
Committed: Wed Mar 18 09:37:08 2015 -0700

----------------------------------------------------------------------
 .../sentry/binding/metastore/SentryMetastorePostEventListener.java  | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/fd221580/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryMetastorePostEventListener.java
----------------------------------------------------------------------
diff --git a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryMetastorePostEventListener.java b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryMetastorePostEventListener.java
index cc433d4..b6a9a47 100644
--- a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryMetastorePostEventListener.java
+++ b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/metastore/SentryMetastorePostEventListener.java
@@ -162,7 +162,6 @@ public class SentryMetastorePostEventListener extends MetaStoreEventListener {
       List<String> tNames = dbEvent.getHandler().get_all_tables(authzObj);
       plugin.removeAllPaths(authzObj, tNames);
     }
-    dropSentryDbPrivileges(dbEvent.getDatabase().getName());
     if (!syncWithPolicyStore(AuthzConfVars.AUTHZ_SYNC_DROP_WITH_POLICY_STORE)) {
       return;
     }