You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/06/29 02:22:34 UTC

[dubbo] 02/02: reset start state when change takeover mode

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

albumenj pushed a commit to branch 3.0.1-release
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit 4492e2f798aaba86108ff3e05ca2d0a7bd2ed3c2
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Tue Jun 29 10:22:12 2021 +0800

    reset start state when change takeover mode
---
 .../src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrap.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrap.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrap.java
index 592c148..fa10a72 100644
--- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrap.java
+++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrap.java
@@ -1587,6 +1587,7 @@ public class DubboBootstrap {
     }
 
     public void setTakeoverMode(BootstrapTakeoverMode takeoverMode) {
+        this.started.set(false);
         this.takeoverMode = takeoverMode;
     }