From cfe79da801d5b7f3ea382545b1fa592f19350d63 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 26 Apr 2021 21:45:02 -0500 Subject: [PATCH] reclaims unref accounts from index --- runtime/src/accounts_db.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 9f8e378fe1f5f1..712ac1f302eeab 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -1724,7 +1724,9 @@ impl AccountsDb { // Don't reset from clean, since the pubkeys in those stores may need to be unref'ed // and those stores may be used for background hashing. let reset_accounts = false; - self.handle_reclaims(&reclaims, None, false, None, reset_accounts); + let mut reclaim_result = ReclaimResult::default(); + let reclaim_result = Some(&mut reclaim_result); + self.handle_reclaims(&reclaims, None, false, reclaim_result, reset_accounts); reclaims_time.stop();