refactor: route ecstore internals through object resolver (#3441)

This commit is contained in:
安正超
2026-06-14 19:55:21 +08:00
committed by GitHub
parent bf3a3a6189
commit 323302255c
11 changed files with 66 additions and 50 deletions
+2 -2
View File
@@ -793,10 +793,10 @@ pub async fn load_data_usage_cache(store: &crate::set_disk::SetDisks, name: &str
pub async fn save_data_usage_cache(cache: &DataUsageCache, name: &str) -> crate::error::Result<()> {
use crate::config::com::save_config;
use crate::disk::BUCKET_META_PREFIX;
use crate::new_object_layer_fn;
use crate::resolve_object_store_handle;
use std::path::Path;
let Some(store) = new_object_layer_fn() else {
let Some(store) = resolve_object_store_handle() else {
return Err(Error::other("errServerNotInitialized"));
};
let buf = cache.marshal_msg().map_err(Error::other)?;