Update valkey-benchmark log output to reference 'server' instead of 'Redis' (#1029)
Replaced "Could not connect to Redis" with "Could not connect to server" in the log output for connection errors in `getRedisContext` and `createClient`. Signed-off-by: Shivshankar-Reddy <shiva.sheri.github@gmail.com>
This commit is contained in:
parent
17390383b5
commit
9f8185f5c8
@ -238,7 +238,7 @@ static redisContext *getRedisContext(const char *ip, int port, const char *hosts
|
|||||||
else
|
else
|
||||||
ctx = redisConnectUnix(hostsocket);
|
ctx = redisConnectUnix(hostsocket);
|
||||||
if (ctx == NULL || ctx->err) {
|
if (ctx == NULL || ctx->err) {
|
||||||
fprintf(stderr, "Could not connect to Redis at ");
|
fprintf(stderr, "Could not connect to server at ");
|
||||||
char *err = (ctx != NULL ? ctx->errstr : "");
|
char *err = (ctx != NULL ? ctx->errstr : "");
|
||||||
if (hostsocket == NULL)
|
if (hostsocket == NULL)
|
||||||
fprintf(stderr, "%s:%d: %s\n", ip, port, err);
|
fprintf(stderr, "%s:%d: %s\n", ip, port, err);
|
||||||
@ -648,7 +648,7 @@ static client createClient(char *cmd, size_t len, client from, int thread_id) {
|
|||||||
c->context = redisConnectUnixNonBlock(config.hostsocket);
|
c->context = redisConnectUnixNonBlock(config.hostsocket);
|
||||||
}
|
}
|
||||||
if (c->context->err) {
|
if (c->context->err) {
|
||||||
fprintf(stderr, "Could not connect to Redis at ");
|
fprintf(stderr, "Could not connect to server at ");
|
||||||
if (config.hostsocket == NULL || is_cluster_client)
|
if (config.hostsocket == NULL || is_cluster_client)
|
||||||
fprintf(stderr, "%s:%d: %s\n", ip, port, c->context->errstr);
|
fprintf(stderr, "%s:%d: %s\n", ip, port, c->context->errstr);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user