提交 211dcbe3 编写于 作者: A antirez

Cluster: update cluster config when slave changes master.

上级 6c4d904b
......@@ -1086,6 +1086,9 @@ int clusterProcessPacket(clusterLink *link) {
clusterNodeRemoveSlave(sender->slaveof,sender);
clusterNodeAddSlave(master,sender);
sender->slaveof = master;
/* Update config. */
update_config = 1;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册