[Groonga-commit] droonga/droonga-engine at 069cf63 [master] Revert "Output tags to the list of live nodes"

Back to archive index

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


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

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

  Message:
    Revert "Output tags to the list of live nodes"
    
    This reverts commit 62841ce15ff66bc826ef3b89c6ff6179a94a57a5.

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

  Modified: lib/droonga/command/serf_event_handler.rb (+1 -13)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-06-26 15:52:14 +0900 (d304fa6)
+++ lib/droonga/command/serf_event_handler.rb    2014-06-26 15:52:14 +0900 (c9da937)
@@ -54,27 +54,15 @@ module Droonga
         end
       end
 
-      def parse_tags(tags)
-        parsed = {}
-        return parsed unless tags
-
-        tags.split(",").each do |tag|
-          key, value = tag.split("=")
-          parsed[key] = value
-        end
-        parsed
-      end
-
       def live_nodes
         nodes = {}
         members = `#{@serf} members -rpc-addr #{@serf_rpc_address}`
         members.each_line do |member|
-          name, address, status, tags, = member.strip.split(/\s+/)
+          name, address, status, = member.strip.split(/\s+/)
           next unless status == "alive"
 
           nodes[name] = {
             "serfAddress" => address,
-            "tags" => parse_tags(tags),
           }
         end
         nodes
-------------- next part --------------
HTML����������������������������...
Télécharger 



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