lib/logstash/plugin_mixins/jdbc/value_tracking.rb in logstash-integration-jdbc-5.2.3 vs lib/logstash/plugin_mixins/jdbc/value_tracking.rb in logstash-integration-jdbc-5.2.4
- old
+ new
@@ -4,12 +4,9 @@
module LogStash module PluginMixins module Jdbc
class ValueTracking
def self.build_last_value_tracker(plugin)
handler = plugin.record_last_run ? FileHandler.new(plugin.last_run_metadata_path) : NullFileHandler.new(plugin.last_run_metadata_path)
- if plugin.record_last_run
- handler = FileHandler.new(plugin.last_run_metadata_path)
- end
if plugin.clean_run
handler.clean
end
if plugin.use_column_value && plugin.tracking_column_type == "numeric"