[Groonga-commit] droonga/droonga-engine at 5f95d0f [master] 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: 5f95d0f66f7338160d263ad5ebc9820b839b5b39
  https://github.com/droonga/droonga-engine/commit/5f95d0f66f7338160d263ad5ebc9820b839b5b39

  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 (08360fa)
+++ lib/droonga/cluster.rb    2015-01-06 17:44:25 +0900 (07b2efe)
@@ -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