refactor(runtime): route RustFS runtime consumers through storage owner (#3756)

This commit is contained in:
Zhengchao An
2026-06-23 05:17:56 +08:00
committed by GitHub
parent e0b79aa00c
commit 198fd4f150
50 changed files with 1622 additions and 384 deletions
+3 -8
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use crate::storage::{ecstore_disk, ecstore_storage};
use crate::storage::{all_local_disk, disk_drive_path, disk_endpoint};
use rustfs_io_metrics::capacity_metrics::{
record_capacity_cache_hit, record_capacity_cache_miss, record_capacity_cache_served, record_capacity_refresh_request,
record_capacity_scan_mode,
@@ -263,7 +263,7 @@ pub async fn init_capacity_management_for_local_disks() {
"Capacity manager state changed"
);
let disks = ecstore_storage::all_local_disk().await;
let disks = all_local_disk().await;
if disks.is_empty() {
warn!(
component = LOG_COMPONENT_CAPACITY,
@@ -286,12 +286,7 @@ pub async fn init_capacity_management_for_local_disks() {
let disk_refs = disks
.iter()
.map(|ds| {
capacity_disk_ref(
ecstore_disk::DiskAPI::endpoint(ds.as_ref()).to_string(),
ecstore_disk::DiskAPI::to_string(ds.as_ref()),
)
})
.map(|ds| capacity_disk_ref(disk_endpoint(ds), disk_drive_path(ds)))
.collect();
info!(