aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3/multipart.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-05-09 13:02:39 +0200
committerAlex Auvolat <alex@adnab.me>2023-06-09 16:23:37 +0200
commitc14d3735e5514c395a691a2ab4bb93aef57035e2 (patch)
tree23adc3dfb4e9c7b5f6c4675b2285834e26ea81dd /src/api/s3/multipart.rs
parent53bf2f070cd3ef95bbdf78e439dbeb2d8cda8f19 (diff)
downloadgarage-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.rs2
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,