From 3e43b042ebb893cd95f5bbaf2923ebae6dee34e2 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 3 May 2021 17:10:09 +0000 Subject: [PATCH] reclaims unref accounts from index (#16838) (#17005) (cherry picked from commit 6381ee38eb9dac7f5fb243f3725262d7f74e0c23) Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com> --- 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 4f6ef2a0b17921..50db73e4c48231 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -1598,7 +1598,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();