secondbit/wendy — pull request #21 by BurntSushi (2013-06-22 02:29:31+00:00)
Title: Fixes a bug when a node is disconnected ungracefully from a two node cluster

The bug is that the disconnected node seems to hang around in the
neighborhood set but not in the leafset.

It seems like a single cluster does not record itself in the leafset. So
when the leafset is repaired, it doesn't find the "next node" and
complains. But the function continues and the `send` ends up failing.
This results in the neighborhoodset never being updated/repaired.

My solution was to simply return nil when repairing an empty leafset.