mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-17 10:17:55 +00:00
fix errors/delete_object
This commit is contained in:
@@ -35,6 +35,14 @@ impl PoolMeta {
|
||||
dont_save: false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_suspended(&self, idx: usize) -> bool {
|
||||
if idx >= self.pools.len() {
|
||||
return false;
|
||||
}
|
||||
|
||||
self.pools[idx].decommission.is_some()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user