Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 892e564

Browse files
authored
support the client to Redis Cluster just having one master
1 parent 363195b commit 892e564

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cluster_library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ clusterReply* cluster_get_slots(RedisSock *redis_sock TSRMLS_DC)
616616

617617
// Consume the rest of our response
618618
if((r = cluster_read_sock_resp(redis_sock, type, len TSRMLS_CC))==NULL ||
619-
r->type != TYPE_MULTIBULK || r->elements < 3)
619+
r->type != TYPE_MULTIBULK || r->elements < 1)
620620
{
621621
if(r) cluster_free_reply(r, 1);
622622
return NULL;

0 commit comments

Comments
 (0)