Kouhei Sutou
null+****@clear*****
Wed Nov 5 13:14:16 JST 2014
Kouhei Sutou 2014-11-05 13:14:16 +0900 (Wed, 05 Nov 2014) New Revision: b8cf6f4048ab2c23761c0ac2c597289033442156 https://github.com/groonga/fluent-plugin-groonga/commit/b8cf6f4048ab2c23761c0ac2c597289033442156 Message: out: add "store_" prefix to "table" parameter Because it is a parameter for storing mode. Modified files: README.md lib/fluent/plugin/out_groonga.rb sample/store.conf test/test_output.rb Modified: README.md (+4 -4) =================================================================== --- README.md 2014-10-21 15:52:19 +0900 (29c74ef) +++ README.md 2014-11-05 13:14:16 +0900 (e185039) @@ -42,7 +42,7 @@ into Groonga: <match log.**> type groonga - table logs + store_table logs protocol http host 127.0.0.1 @@ -88,13 +88,13 @@ define schema in Groonga before running Fluentd. You just run Groonga. There is one required parameter: - * `table`: It specifies table name for storing logs. + * `store_table`: It specifies table name for storing logs. Here is a minimum configuration: <match log.**> type groonga - table logs + store_table logs </match> The configuration stores logs into `logs` table in Groonga that runs @@ -115,7 +115,7 @@ Here is a configuration that specifies optional parameters explicitly: <match log.**> type groonga - table logs + store_table logs protocol http host 127.0.0.1 Modified: lib/fluent/plugin/out_groonga.rb (+3 -2) =================================================================== --- lib/fluent/plugin/out_groonga.rb 2014-10-21 15:52:19 +0900 (1e1620f) +++ lib/fluent/plugin/out_groonga.rb 2014-11-05 13:14:16 +0900 (e8c194a) @@ -37,14 +37,15 @@ module Fluent raise ConfigError, "must be http, gqtp or command: <#{value}>" end end - config_param :table, :string, :default => nil + # alias is just for backward compatibility + config_param :store_table, :string, :default => nil, :alias => :table def configure(conf) super @client = create_client(@protocol) @client.configure(conf) - @emitter = Emitter.new(@client, @table) + @emitter = Emitter.new(@client, @store_table) end def start Modified: sample/store.conf (+1 -1) =================================================================== --- sample/store.conf 2014-10-21 15:52:19 +0900 (3e183a8) +++ sample/store.conf 2014-11-05 13:14:16 +0900 (a6e0a05) @@ -4,7 +4,7 @@ <match log.*> type groonga - table Logs + store_table Logs protocol http host 127.0.0.1 Modified: test/test_output.rb (+1 -1) =================================================================== --- test/test_output.rb 2014-10-21 15:52:19 +0900 (446aa5f) +++ test/test_output.rb 2014-11-05 13:14:16 +0900 (001468b) @@ -111,7 +111,7 @@ EOC def configuration <<-CONFIGURATION #{super} - table Logs + store_table Logs CONFIGURATION end -------------- next part -------------- HTML����������������������������... 下載