diff --git a/src/nameservice/UpstreamPolicies.cc b/src/nameservice/UpstreamPolicies.cc index 66124a56..6d416329 100644 --- a/src/nameservice/UpstreamPolicies.cc +++ b/src/nameservice/UpstreamPolicies.cc @@ -360,7 +360,6 @@ int UPSGroupPolicy::remove_server_locked(const std::string& address) else vec = &group->backups; - //std::lock_guard lock(group->mutex); pthread_mutex_lock(&group->mutex); if (params->server_type == 0) group->weight -= params->weight; diff --git a/src/nameservice/WFServiceGovernance.cc b/src/nameservice/WFServiceGovernance.cc index dda3a6be..5689d809 100644 --- a/src/nameservice/WFServiceGovernance.cc +++ b/src/nameservice/WFServiceGovernance.cc @@ -354,7 +354,6 @@ bool WFServiceGovernance::select(const ParsedURI& uri, WFNSTracing *tracing, return false; } - // select_addr == NULL will only happened in consistent_hash EndpointAddress *select_addr = this->first_strategy(uri, tracing); if (!select_addr ||