statdaemons: fixed PoolWithFailoverBase [#METR-10202]

This commit is contained in:
Michael Kolupaev 2014-06-05 12:23:52 +04:00
parent 47f98136fc
commit 50d37fc80e

View File

@ -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);