input: compare max_chunks_up to total_chunks_up not total_chunks.
When testing conditions to see if too many chunks are up compare max_chunks_up
to total_chunks_up instead of total_chunks. This should improve handling of
cases where we reach fluent-bits set buffer limits.
@@ -1308,7 +1308,7 @@ static inline int flb_input_chunk_is_storage_overlimit(struct flb_input_instance
if (storage->type == FLB_STORAGE_FS) {
if (i->storage_pause_on_chunks_overlimit == FLB_TRUE) {
- if (storage->cio->total_chunks >= storage->cio->max_chunks_up) {
+ if (storage->cio->total_chunks_up >= storage->cio->max_chunks_up) {
return FLB_TRUE;
}
}
