From 5e48218670681aef152aeedcf90a4593ac623470 Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Mon, 15 May 2023 18:08:45 -0700 Subject: [PATCH] out_s3: fix incorrect decrementing of after UploadPart failure 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 36db7a4a4ec..8840f82821e 100644 --- a/plugins/out_s3/s3.c +++ b/plugins/out_s3/s3.c @@ -1120,15 +1120,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;