mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-29 08:27:06 +00:00
feat: improve legacy metadata and admin compatibility (#2202)
This commit is contained in:
@@ -71,6 +71,10 @@ impl Index {
|
||||
self.info.len()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.info.is_empty()
|
||||
}
|
||||
|
||||
fn alloc_infos(&mut self, n: usize) {
|
||||
if n > MAX_INDEX_ENTRIES {
|
||||
panic!("n > MAX_INDEX_ENTRIES");
|
||||
|
||||
Reference in New Issue
Block a user