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:
Jayant Anand 2022-09-05 15:39:00 +05:30 committed by GitHub
parent be82ae08ec
commit 9df1cba086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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