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

out_s3: added missing structure instance in s3_retry_warn calls #6923

Merged
merged 1 commit into from
Mar 2, 2023
Merged
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
4 changes: 2 additions & 2 deletions plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,12 +1118,12 @@ static int upload_data(struct flb_s3 *ctx, struct s3_file *chunk,
if (chunk) {
chunk->failures += 1;
if (chunk->failures > ctx->ins->retry_limit){
s3_retry_warn(ctx, tag, chunk->input_name, create_time, FLB_FALSE);
s3_retry_warn(ctx, tag, chunk->input_name, chunk->create_time, FLB_FALSE);
s3_store_file_delete(ctx, chunk);
return -2;
}
else {
s3_retry_warn(ctx, tag, chunk->input_name, create_time, FLB_TRUE);
s3_retry_warn(ctx, tag, chunk->input_name, chunk->create_time, FLB_TRUE);
s3_store_file_unlock(chunk);
return -1;
}
Expand Down