mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Cluster: clusterDelNode(): remove node from master's slaves.
This commit is contained in:
parent
5e0e03be41
commit
db6d628c3e
@ -664,7 +664,11 @@ void clusterDelNode(clusterNode *delnode) {
|
|||||||
}
|
}
|
||||||
dictReleaseIterator(di);
|
dictReleaseIterator(di);
|
||||||
|
|
||||||
/* 3) Free the node, unlinking it from the cluster. */
|
/* 3) Remove this node from its master's slaves if needed. */
|
||||||
|
if (nodeIsSlave(delnode) && delnode->slaveof)
|
||||||
|
clusterNodeRemoveSlave(delnode->slaveof,delnode);
|
||||||
|
|
||||||
|
/* 4) Free the node, unlinking it from the cluster. */
|
||||||
freeClusterNode(delnode);
|
freeClusterNode(delnode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user