diff options
author | Alex Auvolat <alex@adnab.me> | 2023-05-09 13:02:39 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-06-09 16:23:37 +0200 |
commit | c14d3735e5514c395a691a2ab4bb93aef57035e2 (patch) | |
tree | 23adc3dfb4e9c7b5f6c4675b2285834e26ea81dd /src/api/s3/multipart.rs | |
parent | 53bf2f070cd3ef95bbdf78e439dbeb2d8cda8f19 (diff) | |
download | garage-c14d3735e5514c395a691a2ab4bb93aef57035e2.tar.gz garage-c14d3735e5514c395a691a2ab4bb93aef57035e2.zip |
Add test for multipart uploads and fix part renumbering
Diffstat (limited to 'src/api/s3/multipart.rs')
-rw-r--r-- | src/api/s3/multipart.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, |