mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-20 14:40:37 +00:00
also assert still ongoing
This commit is contained in:
@@ -1132,6 +1132,10 @@ pub(super) async fn detach_and_reparent(
|
||||
if let Some(ancestor) = existing {
|
||||
Ancestor::Detached(ancestor, ancestor_lsn)
|
||||
} else {
|
||||
assert!(
|
||||
still_ongoing,
|
||||
"cannot complete if the operation is not still ongoing"
|
||||
);
|
||||
let direct_children =
|
||||
reparented_direct_children(detached, tenant).map_err(Error::from)?;
|
||||
return Ok(DetachingAndReparenting::AlreadyDone(direct_children));
|
||||
|
||||
Reference in New Issue
Block a user