Skip to content
Browse files

announce self if node() is in Workers

  • Loading branch information...
1 parent d881a42 commit 7439255c6eb13c1884cafa4e215f13f92189b5a1 @sg2342 sg2342 committed Nov 18, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gen_leader.erl
View
4 src/gen_leader.erl
@@ -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},

0 comments on commit 7439255

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