Commit 16c53085 authored by Yang Bodong's avatar Yang Bodong Committed by Oran Agra
Browse files

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


(cherry picked from commit 8423b77f)
parent 2ccb9263
......@@ -1782,8 +1782,10 @@ int main(int argc, const char **argv) {
} else {
config.redis_config =
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");
exit(1);
}
}
if (config.num_threads > 0) {
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