Skip to content

Commit

Permalink
in_tail: fixed the initial value of the stream offset field
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Mar 15, 2024
1 parent 42029a4 commit cbf42c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/in_tail/tail_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ static int set_file_position(struct flb_tail_config *ctx,
}
file->offset = ret;

if (file->decompression_context == NULL) {
file->stream_offset = ret;
}

return 0;
}

Expand Down

0 comments on commit cbf42c8

Please sign in to comment.