Skip to content

Commit 0353c6b

Browse files
committed
ap
1 parent 86c9cf9 commit 0353c6b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/source/PipeConfigTreePrivilegeParseVisitor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,14 @@ public Optional<ConfigPhysicalPlan> visitRevokeUser(
226226

227227
@Override
228228
public Optional<ConfigPhysicalPlan> visitGrantRole(
229-
final AuthorTreePlan revokeUserPlan, final String userName) {
230-
return visitRolePlan(revokeUserPlan, userName);
229+
final AuthorTreePlan grantRolePlan, final String userName) {
230+
return visitRolePlan(grantRolePlan, userName);
231231
}
232232

233233
@Override
234234
public Optional<ConfigPhysicalPlan> visitRevokeRole(
235-
final AuthorTreePlan revokeUserPlan, final String userName) {
236-
return visitRolePlan(revokeUserPlan, userName);
235+
final AuthorTreePlan revokeRolePlan, final String userName) {
236+
return visitRolePlan(revokeRolePlan, userName);
237237
}
238238

239239
private Optional<ConfigPhysicalPlan> visitUserPlan(

iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/auth/AuthorPlanExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,10 @@ public TAuthizedPatternTreeResp generateAuthorizedPTree(String username, int per
685685
public PathPatternTree generateRawAuthorizedPTree(final String username, final PrivilegeType type)
686686
throws AuthException {
687687
final User user = authorizer.getUser(username);
688-
final PathPatternTree pPtree = new PathPatternTree();
689688
if (user == null) {
690689
return null;
691690
}
691+
final PathPatternTree pPtree = new PathPatternTree();
692692

693693
constructAuthorityScope(pPtree, user, type);
694694

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/writeback/WriteBackSink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public void customize(
187187
Arrays.asList(CONNECTOR_USE_EVENT_USER_NAME_KEY, SINK_USE_EVENT_USER_NAME_KEY),
188188
CONNECTOR_USE_EVENT_USER_NAME_DEFAULT_VALUE);
189189

190-
if (SESSION_MANAGER.getCurrSession() != null) {
190+
if (SESSION_MANAGER.getCurrSession() == null) {
191191
SESSION_MANAGER.registerSession(session);
192192
}
193193
}

0 commit comments

Comments
 (0)