complete the plumbing with non-notifying attempt_blocks_gc impl

This commit is contained in:
Joonas Koivunen
2024-07-18 08:47:33 +00:00
parent 5330fd9366
commit 14869abb77

View File

@@ -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