Skip to content

Commit

Permalink
Update IoTDBConfigNodeReceiver.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi committed Jan 25, 2025
1 parent 0c7c358 commit 779ff2f
Showing 1 changed file with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,9 @@ private TSStatus executePlan(final ConfigPhysicalPlan plan) throws ConsensusExce
ByteBuffer.wrap(((PipeDeleteDevicesPlan) plan).getModBytes())),
true)
.getStatus();
case CreateUser:
case CreateUserWithRawPassword:
case CreateRole:
case DropUser:
case DropRole:
case GrantRole:
Expand All @@ -692,10 +695,34 @@ private TSStatus executePlan(final ConfigPhysicalPlan plan) throws ConsensusExce
case RevokeRoleFromUser:
case UpdateUser:
return configManager.getPermissionManager().operatePermission((AuthorPlan) plan, true);
case RCreateUser:
case RCreateRole:
case RDropUser:
case RDropRole:
case RGrantRoleAll:
case RGrantUserAll:
case RRevokeRoleAll:
case RRevokeUserAll:
case RGrantRoleAny:
case RGrantUserAny:
case RRevokeUserAny:
case RRevokeRoleAny:
case RGrantRoleDBPriv:
case RGrantUserDBPriv:
case RRevokeRoleDBPriv:
case RRevokeUserDBPriv:
case RGrantRoleTBPriv:
case RGrantUserTBPriv:
case RRevokeRoleTBPriv:
case RRevokeUserTBPriv:
case RGrantRoleSysPri:
case RGrantUserSysPri:
case RRevokeRoleSysPri:
case RRevokeUserSysPri:
case RGrantUserRole:
case RRevokeUserRole:
return configManager.getPermissionManager().operatePermission((AuthorPlan) plan, true);
case CreateSchemaTemplate:
case CreateUser:
case CreateRole:
case CreateUserWithRawPassword:
default:
return configManager.getConsensusManager().write(new PipeEnrichedPlan(plan));
}
Expand Down

0 comments on commit 779ff2f

Please sign in to comment.