From c14d3735e5514c395a691a2ab4bb93aef57035e2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 9 May 2023 13:02:39 +0200 Subject: Add test for multipart uploads and fix part renumbering --- src/api/s3/multipart.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api') diff --git a/src/api/s3/multipart.rs b/src/api/s3/multipart.rs index 611cfd47..0e82f3d0 100644 --- a/src/api/s3/multipart.rs +++ b/src/api/s3/multipart.rs @@ -254,7 +254,7 @@ pub async fn handle_complete_multipart_upload( for (vbk, vb) in part_version.blocks.items().iter() { final_version.blocks.put( VersionBlockKey { - part_number: part_number as u64, + part_number: (part_number + 1) as u64, offset: vbk.offset, }, *vb, -- cgit v1.2.3