You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Xiaomeng Huang (JIRA)" <ji...@apache.org> on 2014/07/17 11:47:05 UTC

[jira] [Commented] (SENTRY-343) Privileges query from database support for "With Grant Option"

    [ 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)