mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Redis Benchmark: use atomic var for liveclients in 'createClient'
This commit is contained in:
parent
834809cbb3
commit
daaff484a6
@ -658,7 +658,7 @@ static client createClient(char *cmd, size_t len, client from, int thread_id) {
|
||||
if (config.idlemode == 0)
|
||||
aeCreateFileEvent(el,c->context->fd,AE_WRITABLE,writeHandler,c);
|
||||
listAddNodeTail(config.clients,c);
|
||||
config.liveclients++;
|
||||
atomicIncr(config.liveclients, 1);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user