pub fn ancestors_of(
table_metadata: &TableMetadataRef,
snapshot_id: i64,
) -> impl Iterator<Item = SnapshotRef> + SendExpand description
Iterate starting from snapshot_id (inclusive) to the root snapshot.
The iterator visits each snapshot at most once, so it terminates even on corrupt metadata whose parent pointers form a cycle.