From 9695e747e6bf8b0422dd5f3e0dfbac229addc5f8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 10 Jun 2022 11:02:03 +0200 Subject: whoops bad typo here --- src/api/s3/put.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); } -- cgit v1.2.3