diff options
author | artix <artix2@gmail.com> | 2019-02-05 19:18:25 +0100 |
---|---|---|
committer | artix <artix2@gmail.com> | 2019-03-01 17:53:14 +0100 |
commit | daaff484a6d6e2f132dea2091cc4d3e8cb629cf3 (patch) | |
tree | 1f57f9ad334a56997ba7400633d212d8a3cee320 /src/redis-benchmark.c | |
parent | 834809cbb34a3b9aa8ca2209ad09883a1a9239e2 (diff) | |
download | redis-daaff484a6d6e2f132dea2091cc4d3e8cb629cf3.tar.gz |
Redis Benchmark: use atomic var for liveclients in 'createClient'
Diffstat (limited to 'src/redis-benchmark.c')
-rw-r--r-- | src/redis-benchmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |