summaryrefslogtreecommitdiff
path: root/tests/instances.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-01-14 17:34:49 +0100
committerantirez <antirez@gmail.com>2016-01-14 17:34:49 +0100
commitfc3ca8ff8714124901a438cd7277d9e4e1cdae46 (patch)
treeef7672af9412ef42c7cd0e09662813d8c69ddead /tests/instances.tcl
parenta411d557d4e7a0cdda074430ecf2a17d20805003 (diff)
downloadredis-fc3ca8ff8714124901a438cd7277d9e4e1cdae46.tar.gz
Cluster: fix setting nodes slaveof pointer to NULL on node release.
With this commit we preserve the list of nodes that have .slaveof set to the node, even when the node is turned into a slave, and make sure to fix the .slaveof pointers to NULL when a node is freed from memory, regardless of the fact it's a slave or a master. Basically we try to remember the logical master in the current configuration even if the logical master advertised it as a slave already. However we still remember the associations, so that when a node is freed we can fix them. This should fix issue #3002.
Diffstat (limited to 'tests/instances.tcl')
0 files changed, 0 insertions, 0 deletions