Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi Z <[email protected]>
  • Loading branch information
skyzh committed Dec 20, 2024
1 parent 358d60c commit 7184b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pageserver/src/tenant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4483,15 +4483,15 @@ impl Tenant {
HashMap::with_capacity(timelines.len());

// Ensures all timelines use the same start time when computing the time cutoff.
let now = SystemTime::now();
let now_ts_for_pitr_calc = SystemTime::now();
for timeline in timelines.iter() {
let cutoff = timeline
.get_last_record_lsn()
.checked_sub(horizon)
.unwrap_or(Lsn(0));

let cutoffs = timeline
.find_gc_cutoffs(now, cutoff, pitr, cancel, ctx)
.find_gc_cutoffs(now_ts_for_pitr_calc, cutoff, pitr, cancel, ctx)
.await?;
let old = gc_cutoffs.insert(timeline.timeline_id, cutoffs);
assert!(old.is_none());
Expand Down

0 comments on commit 7184b22

Please sign in to comment.