diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 8e38265f2..4722b84aa 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -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; }