fix(data-usage): refresh admin usage after object changes (#3081)

Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
This commit is contained in:
Henry Guo
2026-05-25 22:24:00 +08:00
committed by GitHub
parent 0d0a17bb36
commit 62d1f80dbf
5 changed files with 327 additions and 39 deletions
+2
View File
@@ -403,6 +403,8 @@ pub async fn store_data_usage_in_backend(
// Save main configuration
if let Err(e) = save_config(storeapi.clone(), DATA_USAGE_OBJ_NAME_PATH.as_str(), data).await {
error!("Failed to save data usage info to {}: {e}", DATA_USAGE_OBJ_NAME_PATH.as_str());
} else {
rustfs_ecstore::data_usage::replace_bucket_usage_memory_from_info(&data_usage_info).await;
}
attempts += 1;