Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cluster_library.c b/cluster_library.c
index c05064be..c681a17e 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -685,7 +685,10 @@ static int cluster_map_slots(redisCluster *c, clusterReply *r) {
if(!VALIDATE_SLOTS_INNER(r3)) {
return -1;
}
-
+
+ // Skip slaves where the host is ""
+ if(r3->element[0]->len == 0) continue;
+
// Attach this node to our slave
slave = cluster_node_create(c, r3->element[0]->str,
(int)r3->element[0]->len,