YUKI Hiroshi
null+****@clear*****
Wed Apr 1 18:24:17 JST 2015
YUKI Hiroshi 2015-04-01 18:24:17 +0900 (Wed, 01 Apr 2015) New Revision: 7ab0d361293b78dc38f8c9e222b1946df6d9ea87 https://github.com/droonga/droonga-engine/commit/7ab0d361293b78dc38f8c9e222b1946df6d9ea87 Message: Use dispatcher's forwarder only for internal forward Modified files: lib/droonga/dispatcher.rb Modified: lib/droonga/dispatcher.rb (+5 -5) =================================================================== --- lib/droonga/dispatcher.rb 2015-04-01 17:51:54 +0900 (a636982) +++ lib/droonga/dispatcher.rb 2015-04-01 18:24:17 +0900 (ba7b226) @@ -117,10 +117,11 @@ module Droonga def forward(message, destination) logger.trace("forward start") - unless local?(destination) - return if****@clust*****(message, destination) + if local?(destination) + @forwarder.forward(message, destination) + else + @cluster.forward(message, destination) end - @forwarder.forward(message, destination) logger.trace("forward done") end @@ -194,8 +195,7 @@ module Droonga "type" => "dispatcher", "to" => destination, } - @cluster.forward(forward_message, forward_destination) || - @forwarder.forward(forward_message, forward_destination) + @cluster.forward(forward_message, forward_destination) end logger.trace("dispatch: done") end -------------- next part -------------- HTML����������������������������...下載