提交 e7628be2 编写于 作者: A antirez

Cluster: set node->slaveof correctly when a node state is updated.

上级 d6457577
......@@ -854,7 +854,10 @@ int clusterProcessPacket(clusterLink *link) {
sender->flags &= ~REDIS_NODE_MASTER;
sender->flags |= REDIS_NODE_SLAVE;
if (sender->numslaves) clusterNodeResetSlaves(sender);
if (master) clusterNodeAddSlave(master,sender);
if (master) {
clusterNodeAddSlave(master,sender);
sender->slaveof = master;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册