Permalink
Browse files

fix badmatch crash bug on a re-election after net split heal

  • Loading branch information...
1 parent 51a81b9 commit f74290512c7940d373040e6625eb4c2fc9083ed2 @garret-smith committed Jan 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gen_leader.erl
View
@@ -880,8 +880,8 @@ loop(#server{parent = Parent,
{Name, N} ! {election}
end, E1#election.candidate_nodes),
%% Start participating in the election ourselves.
- E1 = startStage1(E, Server),
- safe_loop(Server, candidate, E1, Msg);
+ E2 = startStage1(E, Server),
+ safe_loop(Server, candidate, E2, Msg);
false ->
%% Not a leader, just wait to be told to do an
%% election, if applicable.

0 comments on commit f742905

Please sign in to comment.