aetherlight: Docs loses Deref; reads are inherent methods and every row an iterator yields is counted
No behaviour change. Reads of a partition go through get, contains_key, len, is_empty, iter, keys, values, range, Index and IntoIterator, so no reader can bypass the test-build row counter by coercing to BTreeMap. Resolver and is_genesis parameters take &Docs. golden.digests untouched. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
576605c7b0
commit
436c6d59ca
4 changed files with 127 additions and 19 deletions
|
|
@ -1169,7 +1169,7 @@ fn require_play(caller: &CallerId) -> Result<(), KernelError> {
|
|||
/// `WorldState` so the genesis lane, which resolves declarations before any
|
||||
/// `WorldState` exists, can call the same owner instead of hand-copying the
|
||||
/// literal it would otherwise always evaluate to.
|
||||
fn is_genesis(revision: u64, subjects: &BTreeMap<SubjectId, SubjectState>) -> bool {
|
||||
fn is_genesis(revision: u64, subjects: &Docs<SubjectId, SubjectState>) -> bool {
|
||||
revision == 0 && subjects.is_empty()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue