mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +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)
|
||||
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;
|
||||
else
|
||||
throw Exception("Unknown load_balancing_mode: " + toString(static_cast<int>(load_balancing)), ErrorCodes::LOGICAL_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user