[Groonga-commit] droonga/droonga-engine at ce56cb4 [master] Make EngineNode#role public

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 29 11:45:11 JST 2015


YUKI Hiroshi	2015-04-29 11:45:11 +0900 (Wed, 29 Apr 2015)

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

  Message:
    Make EngineNode#role public

  Modified files:
    lib/droonga/engine_node.rb

  Modified: lib/droonga/engine_node.rb (+8 -8)
===================================================================
--- lib/droonga/engine_node.rb    2015-04-29 11:42:10 +0900 (5d57f1c)
+++ lib/droonga/engine_node.rb    2015-04-29 11:45:11 +0900 (bf49db9)
@@ -102,6 +102,14 @@ module Droonga
       end
     end
 
+    def role
+      if @state
+        @state["role"]
+      else
+        NodeRole::SERVICE_PROVIDER
+      end
+    end
+
     def live?
       @state.nil? or @state["live"]
     end
@@ -176,14 +184,6 @@ module Droonga
       }
     end
 
-    def role
-      if @state
-        @state["role"]
-      else
-        NodeRole::SERVICE_PROVIDER
-      end
-    end
-
     def have_unprocessed_messages?
       @state and @state["have_unprocessed_messages"]
     end
-------------- next part --------------
HTML����������������������������...
다운로드 



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