Skip to content

Commit

Permalink
Don't call commit_write when can't get ack
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed May 24, 2017
1 parent f8c4554 commit ae69f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/out_forward.rb
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def ack_reader

readable_sockets.each do |sock|
chunk_id = read_ack_from_sock(sock, unpacker)
commit_write(chunk_id)
commit_write(chunk_id) if chunk_id
end
rescue => e
log.error "unexpected error while receiving ack", error: e
Expand Down

0 comments on commit ae69f72

Please sign in to comment.