Skip to content

Commit

Permalink
announce self if node() is in Workers
Browse files Browse the repository at this point in the history
  • Loading branch information
sg2342 committed Nov 18, 2010
1 parent d881a42 commit 7439255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gen_leader.erl
Expand Up @@ -467,10 +467,10 @@ init_it(Starter,Parent,Name,Mod,{CandidateNodes,OptArgs,Arg},Options) ->
false -> CandidateNodes
end,
case lists:member(node(), Workers) of
false ->
true ->
rpc:multicall(Candidates, gen_leader,
worker_announce, [Name, node(self())]);
true -> nop
false -> nop
end,
safe_loop(#server{parent = Parent,mod = Mod,
state = State,debug = Debug},
Expand Down

0 comments on commit 7439255

Please sign in to comment.