Skip to content

Commit

Permalink
Do nothing if chunks have been already enqueued
Browse files Browse the repository at this point in the history
  • Loading branch information
abicky committed Oct 20, 2017
1 parent cc25a3c commit 93088bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fluent/plugin/buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ def enqueue_chunk(metadata)
return nil unless chunk

chunk.synchronize do
return nil if chunk.queued?

if chunk.empty?
chunk.close
else
Expand Down

0 comments on commit 93088bf

Please sign in to comment.