mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
refactor(runtime): route RustFS runtime consumers through storage owner (#3756)
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user