diff options
author | artix <artix2@gmail.com> | 2019-06-05 16:34:55 +0200 |
---|---|---|
committer | artix <artix2@gmail.com> | 2019-06-05 16:34:55 +0200 |
commit | d3ed53f11b66d8af4b2334e8651a2eded880d086 (patch) | |
tree | aba343499fce5860dc09421b6d94fd15598f7381 /src/redis-benchmark.c | |
parent | fd0ee469ab165d0e005e9fe1fca1c4f5c604cd56 (diff) | |
download | redis-d3ed53f11b66d8af4b2334e8651a2eded880d086.tar.gz |
Redis Benchmark: prevent CONFIG failure from exiting program
Diffstat (limited to 'src/redis-benchmark.c')
-rw-r--r-- | src/redis-benchmark.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 2785167a8..1d16fa4ee 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -1540,7 +1540,10 @@ int main(int argc, const char **argv) { if (node->name) printf("%s ", node->name); printf("%s:%d\n", node->ip, node->port); node->redis_config = getRedisConfig(node->ip, node->port, NULL); - if (node->redis_config == NULL) exit(1); + if (node->redis_config == NULL) { + fprintf(stderr, "WARN: could not fetch node CONFIG %s:%d\n", + node->ip, node->port); + } } printf("\n"); /* Automatically set thread number to node count if not specified @@ -1550,7 +1553,8 @@ int main(int argc, const char **argv) { } else { config.redis_config = getRedisConfig(config.hostip, config.hostport, config.hostsocket); - if (config.redis_config == NULL) exit(1); + if (config.redis_config == NULL) + fprintf(stderr, "WARN: could not fetch server CONFIG\n"); } if (config.num_threads > 0) { |