[
https://issues.apache.org/jira/browse/SENTRY-576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiaomeng Huang updated SENTRY-576:
----------------------------------
Attachment: (was: SENTRY-576.001.patch)
> Remove useless logic of grant privilege
> ---------------------------------------
>
> Key: SENTRY-576
> URL: https://issues.apache.org/jira/browse/SENTRY-576
> Project: Sentry
> Issue Type: Bug
> Reporter: Xiaomeng Huang
> Assignee: Xiaomeng Huang
>
> Every time when we grant privilege, we will do
> {code}
> MSentryPrivilege mPrivilege = alterSentryRoleGrantPrivilegeCore(pm, roleName,
> privilege);
> if (mPrivilege != null) {
> convertToTSentryPrivilege(mPrivilege, privilege);
> }
> {code}
> After grant privilege, "convertToTSentryPrivilege" is useless except waste of
> time.
> In fact, the return of "alterSentryRoleGrantPrivilegeCore" is useless, so I
> change it's return to void.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)