[control] Pause fixes: Restore waits until an unsaved pause is on disk, unwritable config files pause with a way out, a failed promote at start starts paused, a revert that cannot see edge is not reverted

This commit is contained in:
2026-11-07 19:17:16 +01:00
parent 339882ec96
commit dd10557b87
4 changed files with 212 additions and 38 deletions
-1
View File
@@ -187,7 +187,6 @@ impl Shares {
// Readable by edge (another user); it holds only random link ids.
let text =
serde_json::to_vec(&RevocationFile { epoch, deny }).map_err(|e| e.to_string())?;
crate::crash::fail_write(&self.revocations)?;
crate::util::write_atomic(&self.revocations, &text, 0o644)
.map_err(|e| format!("cannot write {}: {e}", self.revocations.display()))
}