fix endpoint display bug

Signed-off-by: mujunxiang <1948535941@qq.com>
This commit is contained in:
mujunxiang
2024-11-27 15:00:16 +08:00
parent 13b53efb2a
commit bbe3d9231e
2 changed files with 3 additions and 9 deletions
+2 -2
View File
@@ -206,7 +206,7 @@ impl ECStore {
if !is_dist_erasure().await {
let mut global_local_disk_map = GLOBAL_LOCAL_DISK_MAP.write().await;
for disk in local_disks {
let path = disk.path().to_string_lossy().to_string();
let path = disk.endpoint().to_string();
global_local_disk_map.insert(path, Some(disk.clone()));
}
}
@@ -992,7 +992,7 @@ pub async fn init_local_disks(endpoint_pools: EndpointServerPools) -> Result<()>
let disk = new_disk(ep, opt).await?;
let path = disk.path().to_string_lossy().to_string();
let path = disk.endpoint().to_string();
global_local_disk_map.insert(path, Some(disk.clone()));