mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge pull request #449 from holmes1412/master
fix upstream_replace_server
This commit is contained in:
@@ -154,8 +154,8 @@ int UPSGroupPolicy::replace_server(const std::string& address,
|
||||
new UPSAddrParams(params, address));
|
||||
|
||||
pthread_rwlock_wrlock(&this->rwlock);
|
||||
this->add_server_locked(addr);
|
||||
ret = this->remove_server_locked(address);
|
||||
this->add_server_locked(addr);
|
||||
pthread_rwlock_unlock(&this->rwlock);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user