Navigation Menu

Skip to content

Commit

Permalink
Don't send same events again and again
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 27, 2014
1 parent adfc880 commit fe27c4d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bin/droonga-engine-join
Expand Up @@ -118,11 +118,9 @@ sleep(1) # wait for restart
puts "Joining to the cluster..."

name = "#{options.host}:#{options.port}/#{options.tag}"
options.other_hosts.each do |host|
Serf.send_event(name, "join", "dataset" => options.dataset,
"type" => "replica",
"host" => options.host)
end
Serf.send_event(name, "join", "dataset" => options.dataset,
"type" => "replica",
"host" => options.host)

puts "Done."

Expand Down

0 comments on commit fe27c4d

Please sign in to comment.