From 318c1bd86a41314e1bbfe0233e297b8e2a427f63 Mon Sep 17 00:00:00 2001 From: Karl Date: Wed, 5 Oct 2016 11:44:03 +0100 Subject: [PATCH] Update jdbc.rb Logstash v5 nomenclature for threadsafety/concurrency change --- lib/logstash/outputs/jdbc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/outputs/jdbc.rb b/lib/logstash/outputs/jdbc.rb index c70651f..a8345aa 100644 --- a/lib/logstash/outputs/jdbc.rb +++ b/lib/logstash/outputs/jdbc.rb @@ -12,7 +12,7 @@ require 'logstash-output-jdbc_jars' # includes correctly crafting the SQL statement, and matching the number of # parameters correctly. class LogStash::Outputs::Jdbc < LogStash::Outputs::Base - declare_threadsafe! if self.respond_to?(:declare_threadsafe!) + concurrency :shared STRFTIME_FMT = '%Y-%m-%d %T.%L'.freeze