[Groonga-commit] droonga/droonga-engine at 672e602 [master] Read list of live nodes via EngineState.

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jun 26 11:45:18 JST 2014


YUKI Hiroshi	2014-06-26 11:45:18 +0900 (Thu, 26 Jun 2014)

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

  Message:
    Read list of live nodes via EngineState.
    
    It should not be accessed via Dispatcher itself.

  Modified files:
    lib/droonga/dispatcher.rb
    lib/droonga/plugins/system.rb

  Modified: lib/droonga/dispatcher.rb (+2 -0)
===================================================================
--- lib/droonga/dispatcher.rb    2014-06-26 11:42:44 +0900 (c09bc15)
+++ lib/droonga/dispatcher.rb    2014-06-26 11:45:18 +0900 (15b6792)
@@ -46,6 +46,8 @@ module Droonga
       end
     end
 
+    attr_reader :engine_state
+
     def initialize(engine_state, catalog)
       @engine_state = engine_state
       @forwarder = @engine_state.forwarder

  Modified: lib/droonga/plugins/system.rb (+1 -1)
===================================================================
--- lib/droonga/plugins/system.rb    2014-06-26 11:42:44 +0900 (03de35d)
+++ lib/droonga/plugins/system.rb    2014-06-26 11:45:18 +0900 (faf605e)
@@ -27,7 +27,7 @@ module Droonga
         def handle(message)
           dispatcher =****@messe*****
 
-          live_nodes = dispatcher.live_nodes
+          live_nodes = dispatcher.engine_state.live_nodes
           nodes = {}
           dispatcher.all_nodes.collect do |identifier|
             nodes[identifier] = {
-------------- next part --------------
HTML����������������������������...
Download 



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