Skip to content

Commit

Permalink
ndb_redis: fix index on parsing sentinel address
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c8eed0)
(cherry picked from commit d4ff155)
  • Loading branch information
miconda committed Mar 30, 2023
1 parent 31e116c commit bbb4089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ndb_redis/redis_client.c
Expand Up @@ -160,7 +160,7 @@ int redisc_init(void)
port = 6379;
if( (pos = strchr(sentinelAddr, ':')) != NULL ) {
port = atoi(pos+1);
pos[i] = '\0';
pos[0] = '\0';
}

redis = redisConnectWithTimeout(sentinelAddr, port, tv_conn);
Expand Down

0 comments on commit bbb4089

Please sign in to comment.