[Groonga-commit] droonga/droonga-engine at fdb7bf7 [master] Revert "Output dead nodes also"

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jun 26 15:52:13 JST 2014


YUKI Hiroshi	2014-06-26 15:52:13 +0900 (Thu, 26 Jun 2014)

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

  Message:
    Revert "Output dead nodes also"
    
    This reverts commit 88056ea502c61055aadbe252a6b8ec33adab9ec9.

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

  Modified: lib/droonga/command/serf_event_handler.rb (+2 -1)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-06-26 15:52:12 +0900 (2ed8034)
+++ lib/droonga/command/serf_event_handler.rb    2014-06-26 15:52:13 +0900 (cf2cfd8)
@@ -70,9 +70,10 @@ 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����������������������������...
Download 



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