diff options
author | Brad Anderson <brad@cloudant.com> | 2010-05-20 11:23:08 -0400 |
---|---|---|
committer | Brad Anderson <brad@cloudant.com> | 2010-05-20 11:23:08 -0400 |
commit | c8317d0f15ecc0a19c114128ad5b3cbf2aa8cf95 (patch) | |
tree | b0dc9c043d68e4b4987b4001166fc74e48f61065 /src/mem3.erl | |
parent | dcb044f31136a4f8f19caab19e003b2e0352bc2f (diff) |
add another clause for join-replace
Diffstat (limited to 'src/mem3.erl')
-rw-r--r-- | src/mem3.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem3.erl b/src/mem3.erl index 81a383c2..3a3df1ed 100644 --- a/src/mem3.erl +++ b/src/mem3.erl @@ -305,6 +305,8 @@ handle_join(join, ExtNodes, PingNode, #mem{args=Args} = State) -> % now use this info to join the ring int_join(ExtNodes, NewState); +handle_join(replace, OldNode, PingNode, State) when is_atom(OldNode) -> + handle_join(replace, {OldNode, []}, PingNode, State); handle_join(replace, [OldNode | _], PingNode, State) -> handle_join(replace, {OldNode, []}, PingNode, State); handle_join(replace, {OldNode, NewOpts}, PingNode, _State) -> |