Navigation Menu

Skip to content

Commit

Permalink
Output dead nodes also
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 26, 2014
1 parent 67a4292 commit 88056ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/droonga/command/serf_event_handler.rb
Expand Up @@ -70,10 +70,9 @@ def live_nodes
members = `#{@serf} members -rpc-addr #{@serf_rpc_address}`
members.each_line do |member|
name, address, status, tags, = member.strip.split(/\s+/)
next unless status == "alive"

nodes[name] = {
"serfAddress" => address,
"live" => status == "alive",
"tags" => parse_tags(tags),
}
end
Expand Down

0 comments on commit 88056ea

Please sign in to comment.