You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/06/02 10:48:21 UTC

[GitHub] [shardingsphere] menghaoranss commented on a diff in pull request #18155: addComputeNodeInstance when modeType is not cluster

menghaoranss commented on code in PR #18155:
URL: https://github.com/apache/shardingsphere/pull/18155#discussion_r887819144


##########
shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/instance/InstanceContext.java:
##########
@@ -52,6 +52,9 @@ public InstanceContext(final ComputeNodeInstance instance, final WorkerIdGenerat
         this.workerIdGenerator = workerIdGenerator;
         this.modeConfiguration = modeConfiguration;
         this.lockContext = lockContext;
+        if (!isCluster()) {

Review Comment:
   for standalone mode, DistSQL just control the current instance, So there is no need to add instance.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org