mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-20 22:50:38 +00:00
additional assert in completion
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user