mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 21:46:50 +00:00
@@ -58,4 +58,10 @@ pub async fn update_erasure_type(setup_type: SetupType) {
|
||||
*is_erasure_sd = setup_type == SetupType::ErasureSD;
|
||||
}
|
||||
|
||||
pub async fn is_legacy() -> bool {
|
||||
let lock = GLOBAL_Endpoints.read().await;
|
||||
let endpoints = lock.as_ref();
|
||||
endpoints.len() == 1 && endpoints[0].legacy
|
||||
}
|
||||
|
||||
type TypeLocalDiskSetDrives = Vec<Vec<Vec<Option<DiskStore>>>>;
|
||||
|
||||
Reference in New Issue
Block a user