Skip to content

Commit

Permalink
Revert "Apply PR#468 patch only for 0.12.x."
Browse files Browse the repository at this point in the history
Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Jul 31, 2024
1 parent d4e1964 commit 1a37f2a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/fluent/plugin/out_rdkafka2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ class Rdkafka::Producer
def close(timeout = nil)
rdkafka_version = Rdkafka::VERSION || '0.0.0'
# Rdkafka version >= 0.12.0 changed its internals
# but reverted in >= 0.13.0
gem_version = Gem::Version::create(rdkafka_version)
if gem_version >= Gem::Version.create('0.12.0') and
gem_version <= Gem::Version.create('0.12.1')
if Gem::Version::create(rdkafka_version) >= Gem::Version.create('0.12.0')
ObjectSpace.undefine_finalizer(self)

return @client.close(timeout)
Expand Down

0 comments on commit 1a37f2a

Please sign in to comment.