Skip to content
Browse files

Fix breakage in gen_leader

  • Loading branch information...
1 parent 1ff82e2 commit 62304167bcf8b05078bc60ede27f153fd93ea5b9 Andrew Thompson committed May 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 contrib/misc/src/gen_leader.erl
View
4 contrib/misc/src/gen_leader.erl
@@ -759,7 +759,7 @@ loop(#server{parent = Parent,
{election} ->
%% io:format("Doing an election~n"),
Mide = E,%#election{leader = none, leadernode = none},
- E1 = startStage1(Mide),
+ E1 = startStage1(Mide, Server),
safe_loop(Server, candidate, E1, Msg);
{checklead, Node} ->
%% io:format("Checking lead~n"),
@@ -774,7 +774,7 @@ loop(#server{parent = Parent,
{Name, N} ! {election}
end, E1#election.candidate_nodes),
Mide = E1,%#election{leader = none, leadernode = none},
- E2 = startStage1(Mide),
+ E2 = startStage1(Mide, Server),
safe_loop(Server, candidate, E2, Msg);
false ->
%% io:format("conflict, I'll be getting told by the leader when to start an election~n"),

0 comments on commit 6230416

Please sign in to comment.
Something went wrong with that request. Please try again.