[Groonga-commit] droonga/droonga-engine at 7a51b79 [buffered-forward] Collect nodes status correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Jan 6 17:44:25 JST 2015


YUKI Hiroshi	2015-01-06 17:44:25 +0900 (Tue, 06 Jan 2015)

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

  Message:
    Collect nodes status correctly

  Modified files:
    lib/droonga/cluster.rb

  Modified: lib/droonga/cluster.rb (+4 -2)
===================================================================
--- lib/droonga/cluster.rb    2015-01-06 17:39:39 +0900 (6d76fa3)
+++ lib/droonga/cluster.rb    2015-01-06 17:44:25 +0900 (cb90248)
@@ -71,11 +71,13 @@ module Droonga
     end
 
     def engine_nodes_status
-      engine_nodes.collect do |node|
-        nodes[node.name] = {
+      nodes_status = {}
+      engine_nodes.each do |node|
+        nodes_status[node.name] = {
           "status" => node.status,
         }
       end
+      nodes_status
     end
 
     def forward(message, destination)
-------------- next part --------------
HTML����������������������������...
Download 



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