From 58a7d3fc0e8021a7b00d19b09bddd79b0551af45 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Thu, 9 Dec 2021 10:14:57 -0600 Subject: [PATCH] AcctIdx: disable direct to disk for filler account upsert (#21710) --- runtime/src/in_mem_accounts_index.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/src/in_mem_accounts_index.rs b/runtime/src/in_mem_accounts_index.rs index 8a07fd6d3e..d3daa9b0d8 100644 --- a/runtime/src/in_mem_accounts_index.rs +++ b/runtime/src/in_mem_accounts_index.rs @@ -372,7 +372,10 @@ impl InMemAccountsIndex { } 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.