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: fix wrong decrementing of INDEX when UploadPart fails #7394

Merged
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
9 changes: 0 additions & 9 deletions plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,15 +1119,6 @@ static int upload_data(struct flb_s3 *ctx, struct s3_file *chunk,
s3_store_file_unlock(chunk);
chunk->failures += 1;
}
if (ctx->key_fmt_has_seq_index) {
ctx->seq_index--;

ret = write_seq_index(ctx->seq_index_file, ctx->seq_index);
if (ret < 0) {
flb_plg_error(ctx->ins, "Failed to decrement index after request error");
return -1;
}
}
return FLB_RETRY;
}
m_upload->part_number += 1;
Expand Down