Commit 211dcbe3 authored by antirez's avatar antirez
Browse files

Cluster: update cluster config when slave changes master.

parent 6c4d904b
...@@ -1086,6 +1086,9 @@ int clusterProcessPacket(clusterLink *link) { ...@@ -1086,6 +1086,9 @@ int clusterProcessPacket(clusterLink *link) {
clusterNodeRemoveSlave(sender->slaveof,sender); clusterNodeRemoveSlave(sender->slaveof,sender);
clusterNodeAddSlave(master,sender); clusterNodeAddSlave(master,sender);
sender->slaveof = master; sender->slaveof = master;
/* Update config. */
update_config = 1;
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment