YUKI Hiroshi
null+****@clear*****
Mon Feb 3 13:56:43 JST 2014
YUKI Hiroshi 2014-02-03 13:56:43 +0900 (Mon, 03 Feb 2014) New Revision: 4ebc2fc00aed3b46646a61cc65dd36368d1c25e6 https://github.com/droonga/fluent-plugin-droonga/commit/4ebc2fc00aed3b46646a61cc65dd36368d1c25e6 Message: Use returned value of "plan" method directly Modified files: lib/droonga/distributor_plugin.rb lib/droonga/plugin/distributor/search.rb Modified: lib/droonga/distributor_plugin.rb (+2 -4) =================================================================== --- lib/droonga/distributor_plugin.rb 2014-02-03 13:00:20 +0900 (2ed9c15) +++ lib/droonga/distributor_plugin.rb 2014-02-03 13:56:43 +0900 (ef1bf67) @@ -36,16 +36,14 @@ module Droonga planner.scatter(nil) planner.key = options[:key] planner.reduce(options[:reduce]) - planner.plan - distribute(planner.messages) + distribute(planner.plan) end def broadcast(message, options={}) planner = DistributedCommandPlanner.new(message) planner.broadcast(nil, :write => options[:write]) planner.reduce(options[:reduce]) - planner.plan - distribute(planner.messages) + distribute(planner.plan) end private Modified: lib/droonga/plugin/distributor/search.rb (+1 -2) =================================================================== --- lib/droonga/plugin/distributor/search.rb 2014-02-03 13:00:20 +0900 (a7e0504) +++ lib/droonga/plugin/distributor/search.rb 2014-02-03 13:56:43 +0900 (746f7bf) @@ -25,8 +25,7 @@ module Droonga command :search def search(message) planner = DistributedSearchPlanner.new(message) - planner.plan - distribute(planner.messages) + distribute(planner.plan) end end end -------------- next part -------------- HTML����������������������������...Download