• antirez's avatar
    Cluster: fix setting nodes slaveof pointer to NULL on node release. · fc3ca8ff
    antirez authored
    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.
    fc3ca8ff
cluster.c 198 KB