fluent-plugin-rds-mysql-log 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c696e451a6c8c2ecb252f83c70579132162e78404537a6a71376cfd05b96ab4a
4
- data.tar.gz: 7f049ea9d8f451c3f2f821091381213fb46733fee7a0355c8cc1d2d0c547c2da
3
+ metadata.gz: 1e0cb7bdaabe8aba123118d767991c34e2fd388712a8615e2349d1e1e479eef8
4
+ data.tar.gz: 5ce5f71f1d55da0abd18bbecf17a8b003e5d628f452e969431446054bfb6dfa3
5
5
  SHA512:
6
- metadata.gz: 61fedd5e0cd1fe5b8d0d9c8f7a03c9339586d6d1cdc62963e979e0256b502488a2f56099db4d47f40eff4a69c538969e01c1aa35c187334dd02bfdf86702b9cf
7
- data.tar.gz: 0fc077b7c90c7cf2102fc6d47984a6bb44fd254337a51ab6867b7bb546245ae4ac41612fbaba51505eb1e0b7cd9e43de85387e7cd5dfed1b04870eb04ba8a472
6
+ metadata.gz: 93c286cb8d436beff1c0c354e7df195cf8ad7e153c8956d1e0af99ae7c4b4903ab9a97148f4a005c2b9de2a720b6e4166b9cc877fa0b300919d51920ad7c73ce
7
+ data.tar.gz: 9e3506a4e2e5cebed34794a37ec29cd8bf2b6818ea6812a1841fec706e4288c0c06f52dcb203b8faca1b782f26e792f2171b9e3ba80a072200c1dbc781ff357d
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'fluent-plugin-rds-mysql-log'
8
- spec.version = '0.1.11'
8
+ spec.version = '0.1.12'
9
9
  spec.authors = ['Junaid Ali']
10
10
  spec.email = ['jonnie36@yahoo.com']
11
11
  spec.summary = 'Amazon RDS Mysql logs input plugin'
@@ -147,11 +147,7 @@ class Fluent::Plugin::RdsMysqlLogInput < Fluent::Plugin::Input
147
147
  @pos_last_written_timestamp = item[:last_written] if @pos_last_written_timestamp < item[:last_written]
148
148
 
149
149
  log_file_name = item[:log_file_name]
150
- marker = if should_track_marker?(log_file_name)
151
- @pos_info.has_key?(log_file_name) ? @pos_info[log_file_name] : "0"
152
- else
153
- "0"
154
- end
150
+ marker = should_track_marker?(log_file_name) ? @pos_info[log_file_name] || "0" : "0"
155
151
 
156
152
  log.debug "download log from rds: log_file_name=#{log_file_name}, marker=#{marker}"
157
153
  logs = @rds.download_db_log_file_portion(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-rds-mysql-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Junaid Ali