Cluster: update cluster config when slave changes master.

This commit is contained in:
antirez 2013-10-02 12:27:12 +02:00
parent 6c4d904baf
commit 211dcbe339

View File

@ -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;
} }
} }
} }