AcctIdx: resize in-mem after startup for disk index (#21676)

This commit is contained in:
Jeff Washington (jwash)
2021-12-08 16:52:22 -06:00
committed by GitHub
parent 824994db69
commit 181c0092d6
4 changed files with 46 additions and 1 deletions

View File

@@ -905,6 +905,11 @@ impl<T: IndexValue> AccountsIndex<T> {
AccountsIndexIterator::new(self, range, collect_all_unsorted)
}
/// is the accounts index using disk as a backing store
pub fn is_disk_index_enabled(&self) -> bool {
self.storage.storage.is_disk_index_enabled()
}
fn do_checked_scan_accounts<F, R>(
&self,
metric_name: &'static str,