aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3/put.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-10 11:02:03 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-10 11:02:03 +0200
commit9695e747e6bf8b0422dd5f3e0dfbac229addc5f8 (patch)
tree45410956e8875b9e368dd5a54a13f6b6a71e7a17 /src/api/s3/put.rs
parentef7db797bd71eaed92e59e4bc4cdb2cc2d353948 (diff)
downloadgarage-9695e747e6bf8b0422dd5f3e0dfbac229addc5f8.tar.gz
garage-9695e747e6bf8b0422dd5f3e0dfbac229addc5f8.zip
whoops bad typo here
Diffstat (limited to 'src/api/s3/put.rs')
-rw-r--r--src/api/s3/put.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/s3/put.rs b/src/api/s3/put.rs
index 881320af..5a7af4c7 100644
--- a/src/api/s3/put.rs
+++ b/src/api/s3/put.rs
@@ -258,7 +258,7 @@ async fn check_quotas(
if let Some(ms) = quotas.max_size {
let current_size = counters.get(BYTES).cloned().unwrap_or_default();
- if cnt_size_diff > 0 && current_size + cnt_obj_diff > ms as i64 {
+ if cnt_size_diff > 0 && current_size + cnt_size_diff > ms as i64 {
return Err(Error::forbidden(format!("Bucket size quota is reached, maximum total sie of objects for this bucket: {}. The bucket is already {} bytes, and this object would add {} bytes.", ms,
current_size, size)));
}