From 211dcbe339be00b84dcbbd8afdb6578ddc793df6 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 2 Oct 2013 12:27:12 +0200 Subject: [PATCH] Cluster: update cluster config when slave changes master. --- src/cluster.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cluster.c b/src/cluster.c index c90112460..35b6a5b45 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1086,6 +1086,9 @@ int clusterProcessPacket(clusterLink *link) { clusterNodeRemoveSlave(sender->slaveof,sender); clusterNodeAddSlave(master,sender); sender->slaveof = master; + + /* Update config. */ + update_config = 1; } } }