fix(ecstore): avoid nested prefix listing amplification (#6473)

* fix(ecstore): avoid nested prefix listing probes

* fix(app): scope usage overlay import to tests

---------

Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
This commit is contained in:
Henry Guo
2026-08-24 14:29:35 +08:00
committed by GitHub
parent 170a4c7640
commit 60a0b1d6e7
7 changed files with 217 additions and 3 deletions
+1 -1
View File
@@ -18081,7 +18081,7 @@ mod tests {
async fn observed_bucket_usage(bucket: &str) -> Option<u64> {
let mut usage = rustfs_data_usage::DataUsageInfo::default();
apply_bucket_usage_memory_overlay(&mut usage).await;
crate::app::storage_api::object_usecase::data_usage::apply_bucket_usage_memory_overlay(&mut usage).await;
usage.buckets_usage.get(bucket).map(|value| value.size)
}