From ef36dbca042c38c56b26a93ff467783caadfddf1 Mon Sep 17 00:00:00 2001 From: XieHan Date: Fri, 29 Oct 2021 13:34:05 +0800 Subject: [PATCH] EndpointAddress ref set to be atomic --- src/nameservice/WFServiceGovernance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nameservice/WFServiceGovernance.h b/src/nameservice/WFServiceGovernance.h index 942cf2f5..a42bf3a9 100644 --- a/src/nameservice/WFServiceGovernance.h +++ b/src/nameservice/WFServiceGovernance.h @@ -85,7 +85,7 @@ public: std::string host; std::string port; unsigned int fail_count; - unsigned int ref; + std::atomic ref; long long broken_timeout; PolicyAddrParams *params;