sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaomeng Huang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SENTRY-343) Privileges query from database support for "With Grant Option"
Date Thu, 17 Jul 2014 09:47:05 GMT

    [ https://issues.apache.org/jira/browse/SENTRY-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064755#comment-14064755
] 

Xiaomeng Huang commented on SENTRY-343:
---------------------------------------

Hi, Dapeng
-  private MSentryPrivilege getMSentryPrivilege(String privilegeName, PersistenceManager pm)
{
+  private MSentryPrivilege getMSentryPrivilege(TSentryPrivilege privilege, PersistenceManager
pm)
+	  throws SentryInvalidInputException {
+    String privilegeName = constructPrivilegeName(privilege);
+    int grantOption = privilege.getGrantOption();
+    String grantorPrincipal = privilege.getGrantorPrincipal();
     Query query = pm.newQuery(MSentryPrivilege.class);
The privilegeName is unused I think.

> Privileges query from database support for "With Grant Option"
> --------------------------------------------------------------
>
>                 Key: SENTRY-343
>                 URL: https://issues.apache.org/jira/browse/SENTRY-343
>             Project: Sentry
>          Issue Type: Sub-task
>            Reporter: Dapeng Sun
>            Assignee: Dapeng Sun
>         Attachments: SENTRY-343.patch
>
>
> After the sentry database schema changed, privileges query should add grantOption  support.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message