diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 43548f02ff..52d0d0892f 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -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, + max_clean_root_inclusive: Option, last_full_snapshot_slot: Option, store_counts: &HashMap)>, purges_zero_lamports: &mut HashMap, 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",