From 51b4927cafc409437a8b8d8eb976c62d9c60f8f9 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Wed, 28 Apr 2021 08:50:38 -0500 Subject: [PATCH] reclaims unref accounts from index (#16838) --- 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 3c9590206aea57..15caec7650e026 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -1599,7 +1599,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();