diff options
author | Alex Auvolat <alex@adnab.me> | 2023-10-20 13:20:47 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-10-20 13:20:47 +0200 |
commit | c6cde1f1437a6cab90b22df6fe0641e5ad34c287 (patch) | |
tree | 2f9582304f3393f9b95a5e9d9f6d128f598e6a66 /src/api/s3/multipart.rs | |
parent | d146cdd5b66ca1d3ed65ce93ca42c6db22defc09 (diff) | |
download | garage-c6cde1f1437a6cab90b22df6fe0641e5ad34c287.tar.gz garage-c6cde1f1437a6cab90b22df6fe0641e5ad34c287.zip |
remove now-unused key parameter in check_quotas
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 978ad9cf..672ab198 100644 --- a/src/api/s3/multipart.rs +++ b/src/api/s3/multipart.rs @@ -332,7 +332,7 @@ pub async fn handle_complete_multipart_upload( // Calculate total size of final object let total_size = parts.iter().map(|x| x.size.unwrap()).sum(); - if let Err(e) = check_quotas(&garage, bucket, &key, total_size, Some(&object)).await { + if let Err(e) = check_quotas(&garage, bucket, total_size, Some(&object)).await { object_version.state = ObjectVersionState::Aborted; let final_object = Object::new(bucket.id, key.clone(), vec![object_version]); garage.object_table.insert(&final_object).await?; |