This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 93ef537af0 fixed (#6320)
93ef537af0 is described below

commit 93ef537af0cc91443de9f912d11833ec01ac69c2
Author: YongzaoDan <[email protected]>
AuthorDate: Fri Jun 17 13:44:18 2022 +0800

    fixed (#6320)
---
 .../org/apache/iotdb/consensus/standalone/StandAloneServerImpl.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/consensus/src/main/java/org/apache/iotdb/consensus/standalone/StandAloneServerImpl.java
 
b/consensus/src/main/java/org/apache/iotdb/consensus/standalone/StandAloneServerImpl.java
index 309b86371b..8438a5fbe4 100644
--- 
a/consensus/src/main/java/org/apache/iotdb/consensus/standalone/StandAloneServerImpl.java
+++ 
b/consensus/src/main/java/org/apache/iotdb/consensus/standalone/StandAloneServerImpl.java
@@ -48,6 +48,8 @@ public class StandAloneServerImpl implements IStateMachine {
   @Override
   public void start() {
     stateMachine.start();
+    // Notify itself as the leader
+    stateMachine.event().notifyLeaderChanged(peer.getGroupId(), 
peer.getEndpoint());
   }
 
   @Override

Reply via email to