Removed TODO in redis-cli

This commit is contained in:
artix 2018-05-16 18:04:13 +02:00
parent 1e4fb1b33a
commit e47c751c74

View File

@ -4522,7 +4522,6 @@ static int clusterManagerCommandDeleteNode(int argc, char **argv) {
if (n->replicate && !strcasecmp(n->replicate, node_id)) {
// Reconfigure the slave to replicate with some other node
clusterManagerNode *master = clusterManagerNodeWithLeastReplicas();
//TODO: check whether master could be the same as node
assert(master != NULL);
clusterManagerLogInfo(">>> %s:%d as replica of %s:%d\n",
n->ip, n->port, master->ip, master->port);