diff options
author | antirez <antirez@gmail.com> | 2016-01-14 17:34:49 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-01-14 17:34:49 +0100 |
commit | fc3ca8ff8714124901a438cd7277d9e4e1cdae46 (patch) | |
tree | ef7672af9412ef42c7cd0e09662813d8c69ddead /tests/instances.tcl | |
parent | a411d557d4e7a0cdda074430ecf2a17d20805003 (diff) | |
download | redis-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