mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-30 00:47:13 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user