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/07/26 01:56:36 UTC

[dubbo] branch 3.0 updated: make initialize synchronized (#8349)

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

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


The following commit(s) were added to refs/heads/3.0 by this push:
     new 5e4125c  make initialize synchronized (#8349)
5e4125c is described below

commit 5e4125c5be39ed863e55701b4a7b5291163def08
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Mon Jul 26 09:56:19 2021 +0800

    make initialize synchronized (#8349)
---
 .../src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrap.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 7f371fa..a70eab3 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
@@ -549,7 +549,7 @@ public class DubboBootstrap {
     /**
      * Initialize
      */
-    public void initialize() {
+    public synchronized void initialize() {
         if (!initialized.compareAndSet(false, true)) {
             return;
         }