mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-22 23:50:39 +00:00
complete the plumbing with non-notifying attempt_blocks_gc impl
This commit is contained in:
@@ -140,7 +140,11 @@ impl SharedState {
|
||||
pub(crate) fn attempt_blocks_gc(&self) -> bool {
|
||||
// if we have any started and not finished ancestor detaches, we must remain paused
|
||||
// and also let any trying to start operation know that we've paused.
|
||||
false
|
||||
|
||||
// Two cases:
|
||||
// - there is an actual attempt started
|
||||
// - we have learned from indexparts that an attempt will be retried in near future
|
||||
self.inner.lock().unwrap().is_some()
|
||||
}
|
||||
|
||||
/// Sleep for the duration, while letting any ongoing ancestor_detach attempt know that gc has
|
||||
|
||||
Reference in New Issue
Block a user