mirror of https://github.com/yandex/odyssey.git
All the workload was allocated only to one worker, added a fix for that (#464)
Co-authored-by: Jayant Anand <janand@yugabyte.com>
This commit is contained in:
parent
be82ae08ec
commit
9df1cba086
|
@ -80,7 +80,7 @@ static inline void od_worker_pool_feed(od_worker_pool_t *pool,
|
|||
|
||||
while (1) {
|
||||
oldValue = od_atomic_u32_of(&pool->round_robin);
|
||||
next = oldValue + 1 == pool->count ? 0 : oldValue;
|
||||
next = oldValue + 1 == pool->count ? 0 : oldValue + 1;
|
||||
|
||||
if (od_atomic_u32_cas(&pool->round_robin, oldValue, next) ==
|
||||
oldValue)
|
||||
|
|
Loading…
Reference in New Issue