fluent-bit
fluent-bit copied to clipboard
in_tail: signal pending only once
Prior to this commit, if the tail is watching over multiple files, each file signals pending and results in calling in_tail_collect_pending() multiple times. Since function in_tail_collect_pending() goes through all watched files for pending data so calling it once is sufficient.
This commit changes that by only signal pending event when there is any pending data from any watched files.
Enter [N/A]
in the box, if an item is not applicable to your change.
Testing Before we can approve your change; please submit the following in a comment:
-
[N/A] Example configuration file for the change
-
[N/A] Debug log output from testing the change
-
[N/A] Attached Valgrind output that shows no leaks or memory corruption was found
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
- [N/A] Run local packaging test showing all targets (including any new ones) build.
- [N/A]Set
ok-package-test
label to test for all targets (requires maintainer to do).
Documentation
- [N/A] Documentation required for this feature
Backporting
- [N/A] Backport to latest stable release.
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.