From c494bd56edca2da151d2c1cfdbc02a51f664ddcd Mon Sep 17 00:00:00 2001 From: weisd Date: Tue, 10 Sep 2024 18:06:15 +0800 Subject: [PATCH] init global_local_disks --- ecstore/src/store.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ecstore/src/store.rs b/ecstore/src/store.rs index b0d42bbe..38d74b34 100644 --- a/ecstore/src/store.rs +++ b/ecstore/src/store.rs @@ -28,6 +28,7 @@ use lazy_static::lazy_static; lazy_static! { pub static ref GLOBAL_OBJECT_API: Arc>> = Arc::new(Mutex::new(None)); + pub static ref GLOBAL_LOCAL_DISK: Arc>>> = Arc::new(Mutex::new(Vec::new())); } pub fn new_object_layer_fn() -> Arc>> { @@ -129,9 +130,11 @@ impl ECStore { Ok(()) } - pub fn local_disks(&self) -> Vec { - self.local_disks.clone() - } + pub fn init_local_disks() {} + + // pub fn local_disks(&self) -> Vec { + // self.local_disks.clone() + // } fn single_pool(&self) -> bool { self.pools.len() == 1