additional assert in completion

This commit is contained in:
Joonas Koivunen
2024-07-24 12:37:11 +00:00
parent fc4d80bbf2
commit 8f52139913

View File

@@ -283,8 +283,6 @@ impl SharedState {
self.inner.lock().unwrap().validate(&attempt);
// FIXME: could check more preconditions, like that the timeline has been detached?
let mut attempt = scopeguard::guard(attempt, |attempt| {
// our attempt will no longer be valid, so release it
self.inner.lock().unwrap().cancel(attempt);
@@ -319,6 +317,8 @@ impl SharedState {
// Some(gate_entered) means the tenant was not restarted, as is not required
}
assert!(timeline.ancestor_timeline.is_none());
// this should be an 503 at least...?
fail::fail_point!(
"timeline-detach-ancestor::complete_before_uploading",