mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Cluster: update cluster config when slave changes master.
This commit is contained in:
parent
6c4d904baf
commit
211dcbe339
@ -1086,6 +1086,9 @@ int clusterProcessPacket(clusterLink *link) {
|
||||
clusterNodeRemoveSlave(sender->slaveof,sender);
|
||||
clusterNodeAddSlave(master,sender);
|
||||
sender->slaveof = master;
|
||||
|
||||
/* Update config. */
|
||||
update_config = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user