[Groonga-commit] droonga/droonga-engine at f95f031 [buffered-forward] Restore missing method

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 25 16:43:20 JST 2014


YUKI Hiroshi	2014-12-25 16:43:20 +0900 (Thu, 25 Dec 2014)

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

  Message:
    Restore missing method

  Modified files:
    lib/droonga/cluster_state.rb

  Modified: lib/droonga/cluster_state.rb (+13 -0)
===================================================================
--- lib/droonga/cluster_state.rb    2014-12-25 16:41:16 +0900 (2dd734d)
+++ lib/droonga/cluster_state.rb    2014-12-25 16:43:20 +0900 (aee60a0)
@@ -82,6 +82,19 @@ module Droonga
       same_role_nodes - dead_nodes
     end
 
+    def writable_nodes
+      case node_metadata.role
+      when NodeMetadata::Role::SERVICE_PROVIDER
+        all_nodes
+      when NodeMetadata::Role::ABSORB_SOURCE
+        all_nodes & absorb_source_nodes
+      when NodeMetadata::Role::ABSORB_DESTINATION
+        all_nodes & absorb_destination_nodes
+      else
+        []
+      end
+    end
+
     def live_nodes_list=(new_nodes_list)
       old_live_nodes_list = @live_nodes_list
       @live_nodes_list = new_nodes_list
-------------- next part --------------
HTML����������������������������...
다운로드 



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