fix: true atomic bulk topology -- apply_set_parent + single write, add # Errors docs
This commit is contained in:
parent
7ec0a36d7a
commit
84383568b2
2 changed files with 30 additions and 6 deletions
|
|
@ -719,7 +719,12 @@ impl Coordinator {
|
|||
/// Batch version of [`reparent_with_notify`]: applies all moves under a
|
||||
/// single `META_LOCK` acquisition (one git commit) then sends per-agent
|
||||
/// notifications for each move that actually changed topology.
|
||||
/// First validation failure aborts the whole batch.
|
||||
/// First validation failure aborts the whole batch with no disk writes.
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Propagates any error returned by [`crate::meta::bulk_commit_topology`]
|
||||
/// (validation failure or topology-file write error).
|
||||
pub async fn reparent_bulk_with_notify(
|
||||
self: &Arc<Self>,
|
||||
moves: &[(&str, Option<&str>)],
|
||||
|
|
|
|||
Loading…
Reference in a new issue