mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-13 08:22:55 +00:00
Revert "theorem: https://databricks.slack.com/archives/C09254R641L/p1752739636785699?thread_ts=1752738134.504099&cid=C09254R641L"
This reverts commit e4b514e344.
This commit is contained in:
@@ -1835,14 +1835,11 @@ impl Timeline {
|
||||
// of GC blocking.
|
||||
let validate = {
|
||||
let conf = self.tenant_conf.load();
|
||||
//!conf.is_gc_blocked_by_lsn_lease_deadline()
|
||||
!within_deadline
|
||||
!conf.is_gc_blocked_by_lsn_lease_deadline()
|
||||
};
|
||||
|
||||
// Do not allow initial lease creation to be below the planned gc cutoff. The client (compute_ctl) determines
|
||||
// whether it is a initial lease creation or a renewal.
|
||||
if !(is_renew && within_deadline) && lsn < planned_cutoff
|
||||
if (!is_renew || !within_deadline) && lsn < planned_cutoff {
|
||||
if (init || validate) && lsn < planned_cutoff {
|
||||
bail!(
|
||||
"tried to request an lsn lease for an lsn below the planned gc cutoff. requested at {} planned gc cutoff {}",
|
||||
|
||||
Reference in New Issue
Block a user