rename is_detached_from_{original_,}ancestor (just the rename)

This commit is contained in:
Joonas Koivunen
2024-07-25 09:01:27 +00:00
parent 48a2a20de3
commit 9971ae3d24

View File

@@ -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()
}