From 965b4401d8ca50d165b8a74f115df5c701553334 Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Mon, 15 May 2023 19:35:11 -0700 Subject: [PATCH] out_s3: fix wrong decrementing of INDEX when UploadPart fails Signed-off-by: Wesley Pettit --- plugins/out_s3/s3.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/out_s3/s3.c b/plugins/out_s3/s3.c index 1d124adc93a..090d8dcc0ec 100644 --- a/plugins/out_s3/s3.c +++ b/plugins/out_s3/s3.c @@ -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;