summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Anderson <brad@cloudant.com>2010-05-20 11:23:08 -0400
committerBrad Anderson <brad@cloudant.com>2010-05-20 11:23:08 -0400
commitc8317d0f15ecc0a19c114128ad5b3cbf2aa8cf95 (patch)
treeb0dc9c043d68e4b4987b4001166fc74e48f61065 /src
parentdcb044f31136a4f8f19caab19e003b2e0352bc2f (diff)
add another clause for join-replace
Diffstat (limited to 'src')
-rw-r--r--src/mem3.erl2
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) ->