From 5b1d18d8c5b14265733a9ed32e9217dd299ee699 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 be96402e0ecbd4..43c4c05d0c4bc6 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();