aboutsummaryrefslogtreecommitdiffstats
path: root/src/document
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-08 21:55:00 +0000
committertv <tv@krebsco.de>2026-11-08 22:59:03 +0100
commit64c3c47d9bbc8ca2e6352bdcf79a91b1d1669289 (patch)
tree7339bc385934a3c60a226f58fc1482329ea9c2f0 /src/document
parentf48302e101b8f6814a32e834259588cd11731957 (diff)
screen: judged after the policy is gone, too
Review 3, R4: whether a batch was judged followed the receiving document's policy now (and whether the batch writes one). After the policy was removed, or replaced by a version the node doesn't know, changes written under it and received late went in unjudged, while nodes that had them earlier judged them; REFUSALS gave up likewise. Screening now remembers that the document held a policy, known or not (Screening::policed), and judges what it receives while it does, each change by the policy at its dependencies; REFUSALS judges then too (not under a policy the node doesn't know, as before). Not across a restart, which access.md says.
Diffstat (limited to 'src/document')
-rw-r--r--src/document/bench.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/document/bench.rs b/src/document/bench.rs
index 887ced0..39a8dc7 100644
--- a/src/document/bench.rs
+++ b/src/document/bench.rs
@@ -664,6 +664,7 @@ fn screening_costs(workload: &str, doc: &Document) {
let screened = crate::access::screen::apply(
&mut empty,
Epoch::GENESIS,
+ false,
changes,
&mut crate::access::screen::Waiting::default(),
&mut crate::access::screen::Refusals::default(),