Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
zddr committed Dec 27, 2024
1 parent b6a48f2 commit b26c683
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,11 +718,11 @@ public void replayGrant(PrivInfo privInfo) {
private void grantInternal(UserIdentity userIdent, String role, TablePattern tblPattern, PrivBitSet privs,
Map<ColPrivilegeKey, Set<String>> colPrivileges, boolean errOnNonExist, boolean isReplay)
throws DdlException {
if (!isReplay) {
checkTablePatternExist(tblPattern, privs);
}
writeLock();
try {
if (!isReplay) {
checkTablePatternExist(tblPattern, privs);
}
if (role == null) {
if (!doesUserExist(userIdent)) {
throw new DdlException("user " + userIdent + " does not exist");
Expand Down

0 comments on commit b26c683

Please sign in to comment.