diff options
| author | tv <tv@krebsco.de> | 2026-11-15 18:49:12 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-15 18:49:12 +0000 |
| commit | c8f7165bae7344c0fb0d5265b7736de8ed26d91c (patch) | |
| tree | 968214fbd2c731fb466c9bbc2bdb41e04ef1d53c /src/remake | |
| parent | 036b968712c6c4d5e467de3d1df17ffa538a23c5 (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.rs | 10 |
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)), } } |
