Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.8.0, 2.0.0
-
None
Description
In the end of alterSentryRoleGrantPrivilegeCore() there is the following code:
mPrivilege.appendRole(mRole); pm.makePersistent(mRole); pm.makePersistent(mPrivilege);
I think the second makePersistent call isn't needed and can only cause troubles (extra potential for deadlock). When the role is made persistent, the associated privilege should be updated as well.