aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-15 18:49:12 +0000
committertv <tv@krebsco.de>2026-11-15 18:49:12 +0000
commitc8f7165bae7344c0fb0d5265b7736de8ed26d91c (patch)
tree968214fbd2c731fb466c9bbc2bdb41e04ef1d53c /src/remake
parent036b968712c6c4d5e467de3d1df17ffa538a23c5 (diff)
remakes: a signed place already held is kept like any write that loses
Where the new epoch holds as high a `seq` at a signed place as the old one reads, the chain isn't replayed: it was counted as superseded and left out even with `--superseded-writes quarantine`, unlike every other write a newer one superseded. Now it goes to the quarantine then too.
Diffstat (limited to 'src/remake')
-rw-r--r--src/remake/delta.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/remake/delta.rs b/src/remake/delta.rs
index 388eae7..0d87564 100644
--- a/src/remake/delta.rs
+++ b/src/remake/delta.rs
@@ -158,7 +158,15 @@ pub(crate) fn replay_newest(
ordered.insert((made, ordered.len()), (when, place.clone(), envelope, user));
}
}
- Chain::Held => stats.superseded += 1,
+ Chain::Held => {
+ stats.superseded += 1;
+ if superseded == Superseded::Quarantine {
+ stats.quarantined.push((
+ place,
+ "the new epoch holds as high a `seq` there".to_owned(),
+ ));
+ }
+ }
Chain::Broken(why) => stats.quarantined.push((place, why)),
}
}