YUKI Hiroshi
null+****@clear*****
Fri Dec 26 10:11:04 JST 2014
YUKI Hiroshi 2014-12-26 10:11:04 +0900 (Fri, 26 Dec 2014) New Revision: c2e71a764416edc681f0a8eb6279bcce886382f6 https://github.com/droonga/droonga-engine/commit/c2e71a764416edc681f0a8eb6279bcce886382f6 Message: Restore writable_nodes on e44d9111b58680416727c2428fc09843ddeb6669 Modified files: lib/droonga/cluster_state.rb Modified: lib/droonga/cluster_state.rb (+10 -1) =================================================================== --- lib/droonga/cluster_state.rb 2014-12-25 19:37:28 +0900 (f04cf27) +++ lib/droonga/cluster_state.rb 2014-12-26 10:11:04 +0900 (ea471ff) @@ -83,7 +83,16 @@ module Droonga end def writable_nodes - all_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) -------------- next part -------------- HTML����������������������������... Download