mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-05 04:47:43 +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>>>>;
|
||||
|
||||
@@ -19,6 +19,7 @@ mod utils;
|
||||
|
||||
pub mod bucket;
|
||||
|
||||
pub use global::is_legacy;
|
||||
pub use global::new_object_layer_fn;
|
||||
pub use global::set_global_endpoints;
|
||||
pub use global::update_erasure_type;
|
||||
|
||||
Reference in New Issue
Block a user