add _inclusive (#27300)
This commit is contained in:
parent
ae02d955b4
commit
9703855a80
|
@ -3013,16 +3013,16 @@ impl AccountsDb {
|
|||
/// ```
|
||||
///
|
||||
/// This filtering step can be skipped if there is no `last_full_snapshot_slot`, or if the
|
||||
/// `max_clean_root` is less-than-or-equal-to the `last_full_snapshot_slot`.
|
||||
/// `max_clean_root_inclusive` is less-than-or-equal-to the `last_full_snapshot_slot`.
|
||||
fn filter_zero_lamport_clean_for_incremental_snapshots(
|
||||
&self,
|
||||
max_clean_root: Option<Slot>,
|
||||
max_clean_root_inclusive: Option<Slot>,
|
||||
last_full_snapshot_slot: Option<Slot>,
|
||||
store_counts: &HashMap<AppendVecId, (usize, HashSet<Pubkey>)>,
|
||||
purges_zero_lamports: &mut HashMap<Pubkey, (SlotList<AccountInfo>, RefCount)>,
|
||||
) {
|
||||
let should_filter_for_incremental_snapshots =
|
||||
max_clean_root.unwrap_or(Slot::MAX) > last_full_snapshot_slot.unwrap_or(Slot::MAX);
|
||||
let should_filter_for_incremental_snapshots = max_clean_root_inclusive.unwrap_or(Slot::MAX)
|
||||
> last_full_snapshot_slot.unwrap_or(Slot::MAX);
|
||||
assert!(
|
||||
last_full_snapshot_slot.is_some() || !should_filter_for_incremental_snapshots,
|
||||
"if filtering for incremental snapshots, then snapshots should be enabled",
|
||||
|
|
Loading…
Reference in New Issue