summaryrefslogtreecommitdiff
path: root/src/redis-benchmark.c
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2018-01-03 12:47:25 +0800
committerzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2018-01-03 12:47:25 +0800
commitc0f611f12aef9fcd320d56181cd6e2ca3066049d (patch)
tree5e261a88ec417fa83f424e3094751b486be4bfd4 /src/redis-benchmark.c
parent238c9bd0863e713f018587e79f452ade845bee91 (diff)
downloadredis-c0f611f12aef9fcd320d56181cd6e2ca3066049d.tar.gz
redis-benchmark: bugfix - handle zero liveclients in right way
Diffstat (limited to 'src/redis-benchmark.c')
-rw-r--r--src/redis-benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c
index 928ec31e0..d30879dc4 100644
--- a/src/redis-benchmark.c
+++ b/src/redis-benchmark.c
@@ -614,7 +614,7 @@ int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData
UNUSED(id);
UNUSED(clientData);
- if (config.liveclients == 0) {
+ if (config.liveclients == 0 && config.requests_finished != config.requests) {
fprintf(stderr,"All clients disconnected... aborting.\n");
exit(1);
}