[Groonga-commit] droonga/droonga-engine at 88056ea [master] Output dead nodes also

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jun 26 14:03:02 JST 2014


YUKI Hiroshi	2014-06-26 14:03:02 +0900 (Thu, 26 Jun 2014)

  New Revision: 88056ea502c61055aadbe252a6b8ec33adab9ec9
  https://github.com/droonga/droonga-engine/commit/88056ea502c61055aadbe252a6b8ec33adab9ec9

  Message:
    Output dead nodes also

  Modified files:
    lib/droonga/command/serf_event_handler.rb

  Modified: lib/droonga/command/serf_event_handler.rb (+1 -2)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-06-26 14:01:20 +0900 (cf2cfd8)
+++ lib/droonga/command/serf_event_handler.rb    2014-06-26 14:03:02 +0900 (2ed8034)
@@ -70,10 +70,9 @@ module Droonga
         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
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index