AcctIdx: disable direct to disk for filler account upsert (#21710)

This commit is contained in:
Jeff Washington (jwash) 2021-12-09 10:14:57 -06:00 committed by GitHub
parent 0090916735
commit 58a7d3fc0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -372,7 +372,10 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
}
Entry::Vacant(vacant) => {
// not in cache, look on disk
let directly_to_disk = self.storage.get_startup();
// desired to be this for filler accounts: self.storage.get_startup();
// but, this has proven to be far too slow at high account counts
let directly_to_disk = false;
if directly_to_disk {
// We may like this to always run, but it is unclear.
// If disk bucket needs to resize, then this call can stall for a long time.