YUKI Hiroshi
null+****@clear*****
Thu Dec 18 17:20:47 JST 2014
YUKI Hiroshi 2014-12-18 17:20:47 +0900 (Thu, 18 Dec 2014) New Revision: 4bc2cbcd8a0e4482ea2de9c0a4bc4dfececb84d5 https://github.com/droonga/droonga-engine/commit/4bc2cbcd8a0e4482ea2de9c0a4bc4dfececb84d5 Message: Revert "Remove needless separate method" This reverts commit c0cf6f7923d57122a5a374b758cb6439535037cc. Modified files: lib/droonga/engine_state.rb Modified: lib/droonga/engine_state.rb (+8 -6) =================================================================== --- lib/droonga/engine_state.rb 2014-12-18 16:56:47 +0900 (a68accf) +++ lib/droonga/engine_state.rb 2014-12-18 17:20:47 +0900 (f11ccdb) @@ -141,18 +141,20 @@ module Droonga end end - def forwardable_nodes - same_role_nodes = nil + def same_role_nodes case node_status.role when NodeStatus::Role::SERVICE_PROVIDER - same_role_nodes = all_nodes & service_provider_nodes + all_nodes & service_provider_nodes when NodeStatus::Role::ABSORB_SOURCE - same_role_nodes = all_nodes & absorb_source_nodes + all_nodes & absorb_source_nodes when NodeStatus::Role::ABSORB_DESTINATION - same_role_nodes = all_nodes & absorb_destination_nodes + all_nodes & absorb_destination_nodes else - same_role_nodes = [] + [] end + end + + def forwardable_nodes same_role_nodes - dead_nodes end -------------- next part -------------- HTML����������������������������... 下載