mirror of
https://github.com/redis/redis.git
synced 2026-02-03 20:39:54 -05:00
Merge f8051e5c36 into b5a37c0e42
This commit is contained in:
commit
1c425dd136
1 changed files with 5 additions and 0 deletions
|
|
@ -2212,6 +2212,11 @@ void clusterProcessGossipSection(clusterMsg *hdr, clusterLink *link) {
|
|||
node->tls_port = msg_tls_port;
|
||||
node->cport = ntohs(g->cport);
|
||||
node->flags &= ~CLUSTER_NODE_NOADDR;
|
||||
|
||||
/* Check if this is our master and we have to change the
|
||||
* replication target as well. */
|
||||
if (nodeIsSlave(myself) && myself->slaveof == node)
|
||||
replicationSetMaster(node->ip, getNodeDefaultReplicationPort(node));
|
||||
}
|
||||
} else if (!node) {
|
||||
/* If it's not in NOADDR state and we don't have it, we
|
||||
|
|
|
|||
Loading…
Reference in a new issue