mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Fix test
This commit is contained in:
parent
4fe54c213b
commit
8538dc041d
@ -34,7 +34,8 @@ GetPriorityForLoadBalancing::getPriorityFunc(LoadBalancing load_balance, size_t
|
||||
get_priority = [offset](size_t i) { return i != offset ? Priority{1} : Priority{0}; };
|
||||
break;
|
||||
case LoadBalancing::ROUND_ROBIN:
|
||||
auto local_last_used = ++last_used % pool_size;
|
||||
auto local_last_used = last_used % pool_size;
|
||||
++last_used;
|
||||
|
||||
// Example: pool_size = 5
|
||||
// | local_last_used | i=0 | i=1 | i=2 | i=3 | i=4 |
|
||||
|
Loading…
Reference in New Issue
Block a user