Skip to content

Commit

Permalink
out_s3: fix wrong decrementing of INDEX when UploadPart fails
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley committed Jun 14, 2023
1 parent 39d9ffb commit 965b440
Showing 1 changed file with 0 additions and 9 deletions.
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

0 comments on commit 965b440

Please sign in to comment.