mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 09:40:32 +00:00
init global_local_disks
This commit is contained in:
@@ -28,6 +28,7 @@ use lazy_static::lazy_static;
|
||||
|
||||
lazy_static! {
|
||||
pub static ref GLOBAL_OBJECT_API: Arc<Mutex<Option<ECStore>>> = Arc::new(Mutex::new(None));
|
||||
pub static ref GLOBAL_LOCAL_DISK: Arc<Mutex<Vec<Option<DiskStore>>>> = Arc::new(Mutex::new(Vec::new()));
|
||||
}
|
||||
|
||||
pub fn new_object_layer_fn() -> Arc<Mutex<Option<ECStore>>> {
|
||||
@@ -129,9 +130,11 @@ impl ECStore {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn local_disks(&self) -> Vec<DiskStore> {
|
||||
self.local_disks.clone()
|
||||
}
|
||||
pub fn init_local_disks() {}
|
||||
|
||||
// pub fn local_disks(&self) -> Vec<DiskStore> {
|
||||
// self.local_disks.clone()
|
||||
// }
|
||||
|
||||
fn single_pool(&self) -> bool {
|
||||
self.pools.len() == 1
|
||||
|
||||
Reference in New Issue
Block a user