diff --git a/src/cluster.c b/src/cluster.c index d4c6300d..e24b15d2 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -4071,7 +4071,7 @@ void clusterCommand(redisClient *c) { } /* Can't replicate a slave. */ - if (n->slaveof != NULL) { + if (nodeIsSlave(n)) { addReplyError(c,"I can only replicate a master, not a slave."); return; }