From 9971ae3d24d39a4af2a75423e2b49c44c8108e15 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Thu, 25 Jul 2024 09:01:27 +0000 Subject: [PATCH] rename is_detached_from_{original_,}ancestor (just the rename) --- pageserver/src/tenant/remote_timeline_client/index.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pageserver/src/tenant/remote_timeline_client/index.rs b/pageserver/src/tenant/remote_timeline_client/index.rs index 1714869233..0bbcbab05c 100644 --- a/pageserver/src/tenant/remote_timeline_client/index.rs +++ b/pageserver/src/tenant/remote_timeline_client/index.rs @@ -236,9 +236,8 @@ impl Lineage { .is_some_and(|(_, ancestor_lsn, _)| ancestor_lsn == lsn) } - // FIXME: rename to is_detached_from_ancestor as the reparented will not be detached from - // original ancestor - pub(crate) fn is_detached_from_original_ancestor(&self) -> bool { + /// Returns true if the timeline originally had an ancestor, and no longer has one. + pub(crate) fn is_detached_from_ancestor(&self) -> bool { self.original_ancestor.is_some() }