Unverified Commit 8423b77f authored by Yang Bodong's avatar Yang Bodong Committed by GitHub
Browse files

When the password is wrong, redis-benchmark should exit (#8855)

parent 611959ee
...@@ -1782,8 +1782,10 @@ int main(int argc, const char **argv) { ...@@ -1782,8 +1782,10 @@ int main(int argc, const char **argv) {
} else { } else {
config.redis_config = config.redis_config =
getRedisConfig(config.hostip, config.hostport, config.hostsocket); getRedisConfig(config.hostip, config.hostport, config.hostsocket);
if (config.redis_config == NULL) if (config.redis_config == NULL) {
fprintf(stderr, "WARN: could not fetch server CONFIG\n"); fprintf(stderr, "WARN: could not fetch server CONFIG\n");
exit(1);
}
} }
if (config.num_threads > 0) { if (config.num_threads > 0) {
pthread_mutex_init(&(config.liveclients_mutex), NULL); pthread_mutex_init(&(config.liveclients_mutex), NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment