mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
dbms: Server: Fixed race condition in ConnectionPoolWithFailover. [#METR-15331]
This commit is contained in:
parent
7196d9c987
commit
b5f690dcd1
@ -91,6 +91,8 @@ private:
|
|||||||
|
|
||||||
void applyLoadBalancing(Settings * settings)
|
void applyLoadBalancing(Settings * settings)
|
||||||
{
|
{
|
||||||
|
Poco::ScopedLock<Poco::FastMutex> lock(mutex);
|
||||||
|
|
||||||
LoadBalancing load_balancing = default_load_balancing;
|
LoadBalancing load_balancing = default_load_balancing;
|
||||||
if (settings)
|
if (settings)
|
||||||
load_balancing = settings->load_balancing;
|
load_balancing = settings->load_balancing;
|
||||||
|
Loading…
Reference in New Issue
Block a user