From 7184b22858345b536145e11798903b88865e06af Mon Sep 17 00:00:00 2001 From: Alex Chi Z Date: Fri, 20 Dec 2024 12:13:20 -0500 Subject: [PATCH] rename Signed-off-by: Alex Chi Z --- pageserver/src/tenant.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pageserver/src/tenant.rs b/pageserver/src/tenant.rs index 8fd175527353..034eb383b9aa 100644 --- a/pageserver/src/tenant.rs +++ b/pageserver/src/tenant.rs @@ -4483,7 +4483,7 @@ 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() @@ -4491,7 +4491,7 @@ impl Tenant { .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());