diff options
author | Oran Agra <oran@redislabs.com> | 2022-04-05 14:25:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 14:25:02 +0300 |
commit | fb4e0d400ff82117104bde5296c477ad95f8dd41 (patch) | |
tree | 4ede2d02b134a84ff29bb7398902c398cd4ff454 /src/redis-benchmark.c | |
parent | d2b5a579dd8b785690aa7714df8776ffc452d242 (diff) | |
parent | 8b242ef977b88d6cae38d451130a88116bcbb638 (diff) | |
download | redis-7.0-rc3.tar.gz |
Merge pull request #10532 from oranagra/7.0-rc37.0-rc3
Release 7.0 rc3
Diffstat (limited to 'src/redis-benchmark.c')
-rw-r--r-- | src/redis-benchmark.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 64893ac37..9b183559d 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -1118,6 +1118,9 @@ static clusterNode **addClusterNode(clusterNode *node) { return config.cluster_nodes; } +/* TODO: This should be refactored to use CLUSTER SLOTS, the migrating/importing + * information is anyway not used. + */ static int fetchClusterConfiguration() { int success = 1; redisContext *ctx = NULL; @@ -1179,7 +1182,7 @@ static int fetchClusterConfiguration() { clusterNode *node = NULL; char *ip = NULL; int port = 0; - char *paddr = strchr(addr, ':'); + char *paddr = strrchr(addr, ':'); if (paddr != NULL) { *paddr = '\0'; ip = addr; |