Navigation Menu

Skip to content

Commit

Permalink
Ignore add_replica event for myself
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 28, 2014
1 parent bdf1982 commit ef529d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/droonga/command/serf_event_handler.rb
Expand Up @@ -178,6 +178,9 @@ def add_replicas
hosts = given_hosts
return unless hosts

hosts -= [host]
return if hosts.empty?

puts "adding replicas: #{hosts.join(",")}"

modify_catalog do |modifier|
Expand Down

0 comments on commit ef529d4

Please sign in to comment.