mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
fixup: make sure detach_ancestor is blocking gc
This commit is contained in:
@@ -579,7 +579,11 @@ impl SharedStateBuilder {
|
||||
timeline_id: &TimelineId,
|
||||
index_part: &crate::tenant::IndexPart,
|
||||
) {
|
||||
if index_part.gc_blocking.is_some() {
|
||||
if index_part
|
||||
.gc_blocking
|
||||
.as_ref()
|
||||
.is_some_and(|b| b.blocked_by_detach_ancestor())
|
||||
{
|
||||
// if the loading a timeline fails, tenant loading must fail as it does right now, or
|
||||
// something more elaborate needs to be done with this tracking
|
||||
self.inprogress.insert(*timeline_id);
|
||||
|
||||
Reference in New Issue
Block a user