Kouhei Sutou
null+****@clear*****
Mon Nov 26 23:21:41 JST 2012
Kouhei Sutou 2012-11-26 23:21:41 +0900 (Mon, 26 Nov 2012) New Revision: 260bf2b46a60dcced32ac6376a7b3fbb849a9f51 https://github.com/groonga/fluent-plugin-groonga/commit/260bf2b46a60dcced32ac6376a7b3fbb849a9f51 Log: in: use the same parameter name for load command data -> values Modified files: lib/fluent/plugin/in_groonga.rb Modified: lib/fluent/plugin/in_groonga.rb (+5 -3) =================================================================== --- lib/fluent/plugin/in_groonga.rb 2012-11-26 23:20:27 +0900 (52a928c) +++ lib/fluent/plugin/in_groonga.rb 2012-11-26 23:21:41 +0900 (98b5531) @@ -130,11 +130,10 @@ module Fluent repeater end - def emit(command, params, body) + def emit(command, params) return unless emit_command?(command) case command when "load" - params["data"] = body Engine.emit("groonga.command.#{command}", Engine.now, params) else Engine.emit("groonga.command.#{command}", Engine.now, params) @@ -196,7 +195,10 @@ module Fluent case path_info when /\A\/d\// command = $POSTMATCH - @input.emit(command, params, @body) + if command == "load" + params["values"] = @body unles****@body*****? + end + @input.emit(command, params) end end end -------------- next part -------------- HTML����������������������������...Download