fix primary id
This commit is contained in:
parent
c54067fcf6
commit
cfe562c177
@ -547,6 +547,9 @@ void HTTPSClientPool::pollPeerHealth(const std::string& server, const std::strin
|
|||||||
net.SetPrimary(false);
|
net.SetPrimary(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(!peer_manager.hasPrimary() && peer_primary) {
|
||||||
|
peer_manager.setPrimary(id);
|
||||||
|
}
|
||||||
|
|
||||||
switch (curStatus) {
|
switch (curStatus) {
|
||||||
case HealthStatus::STARTUP: {
|
case HealthStatus::STARTUP: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user