add _inclusive (#27310)

This commit is contained in:
Jeff Washington (jwash) 2022-08-22 17:59:40 -05:00 committed by GitHub
parent b79abb4fab
commit 66aa81647b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1717,11 +1717,11 @@ impl<T: IndexValue> AccountsIndex<T> {
&self,
pubkey: &Pubkey,
reclaims: &mut SlotList<T>,
max_clean_root: Option<Slot>,
max_clean_root_inclusive: Option<Slot>,
) {
let mut is_slot_list_empty = false;
self.slot_list_mut(pubkey, |slot_list| {
self.purge_older_root_entries(slot_list, reclaims, max_clean_root);
self.purge_older_root_entries(slot_list, reclaims, max_clean_root_inclusive);
is_slot_list_empty = slot_list.is_empty();
});