mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
statdaemons: fixed PoolWithFailoverBase [#METR-10202]
This commit is contained in:
parent
47f98136fc
commit
50d37fc80e
@ -61,7 +61,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (load_balancing == LoadBalancing::NEAREST_HOSTNAME)
|
if (load_balancing == LoadBalancing::NEAREST_HOSTNAME)
|
||||||
nested_pools[i].priority = hostname_differences[i];
|
nested_pools[i].priority = hostname_differences[i];
|
||||||
else if (load_balancing == LoadBalancing::NEAREST_HOSTNAME)
|
else if (load_balancing == LoadBalancing::RANDOM)
|
||||||
nested_pools[i].priority = 0;
|
nested_pools[i].priority = 0;
|
||||||
else
|
else
|
||||||
throw Exception("Unknown load_balancing_mode: " + toString(static_cast<int>(load_balancing)), ErrorCodes::LOGICAL_ERROR);
|
throw Exception("Unknown load_balancing_mode: " + toString(static_cast<int>(load_balancing)), ErrorCodes::LOGICAL_ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user