aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/switch.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 13:19:04 +0100
committertv <tv@krebsco.de>2026-11-01 13:19:04 +0100
commit7a5a7408179c5fe9943bd2ce60295e86f1afaa40 (patch)
tree166284a6b05f1f3e5d5166c38eda33088ae5461b /src/remake/switch.rs
parentb4aa16f2a3c3f9dc0d4eb6e7399bd7ffe269d669 (diff)
document: reject writes during rejoin
Diffstat (limited to 'src/remake/switch.rs')
-rw-r--r--src/remake/switch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remake/switch.rs b/src/remake/switch.rs
index e60c942..9b03789 100644
--- a/src/remake/switch.rs
+++ b/src/remake/switch.rs
@@ -303,7 +303,7 @@ pub(super) async fn swap_in<H: Host>(
let late_stats = std::sync::Arc::new(std::sync::Mutex::new(ReplayStats::default()));
let late_out = std::sync::Arc::clone(&late_stats);
let old = host
- .switch_epoch(target, move |live| {
+ .switch_epoch(target, true, move |live| {
// Only one worker switches, but be sure the copy still describes the live document.
if !crate::document::changes::missing(live, &copy_heads).is_empty() {
return Err("the document was replaced while preparing the switch".to_owned());