mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
always notify gc_waiting when writing over the witness tracking
This commit is contained in:
@@ -146,6 +146,7 @@ impl SharedState {
|
||||
.lock()
|
||||
.unwrap()
|
||||
.continue_existing_attempt(attempt);
|
||||
self.gc_waiting.notify_one();
|
||||
}
|
||||
|
||||
/// Only GC must be paused while a detach ancestor is ongoing. Compaction can happen, to aid
|
||||
@@ -513,6 +514,7 @@ impl SharedStateBuilder {
|
||||
g.known_ongoing.extend(self.inprogress);
|
||||
if g.latest.is_none() && !g.known_ongoing.is_empty() {
|
||||
g.latest = Some((ExistingAttempt::ReadFromIndexPart, false));
|
||||
target.gc_waiting.notify_one();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user