diff options
Diffstat (limited to 'src/state/host.rs')
| -rw-r--r-- | src/state/host.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/state/host.rs b/src/state/host.rs index 5b52e1d..771884e 100644 --- a/src/state/host.rs +++ b/src/state/host.rs @@ -229,20 +229,22 @@ impl AppState { let mut screening = state.screening.lock_or_recover(); screening.of(replica.epoch_seq).keep_dropped(theirs); } - Some((epoch, old, paths, tainted.len())) + let own_paths = paths.len(); + // Before the document is let go: whoever reads it without the writes finds + // them quarantined. + crate::remake::quarantine_taken(&state, epoch, &old, paths); + Some((own_paths, tainted.len())) }) .await .ok() .flatten(); - let Some((epoch, old, paths, count)) = dropped else { + let Some((own_paths, count)) = dropped else { return; }; info!( changes = count, - own_paths = paths.len(), - "Dropped a change taken unjudged and what built on it" + own_paths, "Dropped a change taken unjudged and what built on it" ); - crate::remake::quarantine_taken(self, epoch, &old, paths); self.after_epoch_switch().await; } |
