YUKI Hiroshi
null+****@clear*****
Fri Jan 31 18:52:08 JST 2014
YUKI Hiroshi 2014-01-31 18:52:08 +0900 (Fri, 31 Jan 2014) New Revision: 22a2f1cafb5ca3d7d5fe36f706dfd035a167fe93 https://github.com/droonga/fluent-plugin-droonga/commit/22a2f1cafb5ca3d7d5fe36f706dfd035a167fe93 Message: Don't output needless information Modified files: lib/droonga/plugin/distributor/distributed_search_planner.rb Modified: lib/droonga/plugin/distributor/distributed_search_planner.rb (+2 -2) =================================================================== --- lib/droonga/plugin/distributor/distributed_search_planner.rb 2014-01-31 18:31:16 +0900 (b909f3c) +++ lib/droonga/plugin/distributor/distributed_search_planner.rb 2014-01-31 18:52:08 +0900 (9a1812c) @@ -286,7 +286,7 @@ module Droonga def update_output_attributes! @output["attributes"] = array_style_attributes @output["attributes"] += sort_attribute_names - if unifiable? && !@output["attributes"].include?("_key") + if unifiable? && !source_column_names.include?("_key") @output["attributes"] << "_key" end end @@ -348,7 +348,7 @@ module Droonga DESCENDING_OPERATOR = ">" def build_records_reducer - attributes = @output["attributes"] + attributes = source_column_names key_column_index = attributes.index("_key") operators = @sort_keys.collect do |sort_key| -------------- next part -------------- HTML����������������������������...Download