mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 01:20:38 +00:00
Earlier I was thinking we'd need a (ancestor_lsn, timeline_id) ordered list of reparented. Turns out we did not need it at all. Replace it with an unordered hashset. Additionally refactor the reparented direct children query out, it will later be used from more places. Split off from #8430. Cc: #6994
9 lines
218 B
Rust
9 lines
218 B
Rust
use std::collections::HashSet;
|
|
|
|
use utils::id::TimelineId;
|
|
|
|
#[derive(Debug, Default, PartialEq, serde::Serialize, serde::Deserialize)]
|
|
pub struct AncestorDetached {
|
|
pub reparented_timelines: HashSet<TimelineId>,
|
|
}
|