YUKI Hiroshi
null+****@clear*****
Tue Apr 7 16:17:49 JST 2015
YUKI Hiroshi 2015-04-07 16:17:49 +0900 (Tue, 07 Apr 2015) New Revision: 3374e7f116d8fee5485555355007f0fce2c53100 https://github.com/droonga/droonga-engine/commit/3374e7f116d8fee5485555355007f0fce2c53100 Message: Allow to forward "read" message for non-service provider node Modified files: lib/droonga/engine_node.rb Modified: lib/droonga/engine_node.rb (+5 -1) =================================================================== --- lib/droonga/engine_node.rb 2015-04-07 15:48:58 +0900 (98fc53f) +++ lib/droonga/engine_node.rb 2015-04-07 16:17:49 +0900 (5b2c69e) @@ -95,7 +95,7 @@ module Droonga def readable? forwardable? and****@buffe*****? and - not have_unprocessed_messages? + (complete_service_provider? or not service_provider?) end def writable? @@ -182,6 +182,10 @@ module Droonga role == NodeMetadata::Role::ABSORB_DESTINATION end + def complete_service_provider? + service_provider? and not have_unprocessed_messages? + end + def really_writable? return false unless writable? case sender_role -------------- next part -------------- HTML����������������������������... 다운로드