Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input_chunk: ensure returning/compairing FLB_BOOL(#8184) #8201

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/flb_input_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,14 @@ int flb_input_chunk_set_up_down(struct flb_input_chunk *ic)

int flb_input_chunk_is_up(struct flb_input_chunk *ic)
{
return cio_chunk_is_up(ic->chunk);
int ret = FLB_FALSE;

ret = cio_chunk_is_up(ic->chunk);
if (ret == CIO_TRUE) {
ret = FLB_TRUE;
}

return ret;
}

int flb_input_chunk_down(struct flb_input_chunk *ic)
Expand Down Expand Up @@ -1501,7 +1508,7 @@ static int input_chunk_append_raw(struct flb_input_instance *in,

/* Update 'input' metrics */
#ifdef FLB_HAVE_METRICS
if (ret == CIO_OK) {
if (ret == FLB_TRUE) {
ic->added_records = n_records;
ic->total_records += n_records;
}
Expand Down