From 8a29efed857991417d12b8e21884dbbcb53ff4a0 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 02:48:25 +0000 Subject: document: the writers a node wrote under are the document's, not a remake's The actors a node writes or wrote with in its current document (document::own::OwnWriters, AppState::own_writers) were kept by the remake state, which signing, the document file, sync and a dropped change read them from. They are the engine's: a document of a kind without writers of this sort has none, and needs no remake state for them. --- src/remake/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/remake/mod.rs') diff --git a/src/remake/mod.rs b/src/remake/mod.rs index 1f7a644..6b1103e 100644 --- a/src/remake/mod.rs +++ b/src/remake/mod.rs @@ -200,6 +200,9 @@ pub(crate) trait Host: Clone + Send + Sync + 'static { /// This node's in-memory remake state. fn remake(&self) -> &RemakeState; + /// The writers this node writes or wrote under in its current document. + fn own_writers(&self) -> &crate::document::own::OwnWriters; + /// This node's wall clock (`clock`): deadlines, votes and decisions are stamped and /// judged with it. Shared, so closures run under the document lock can read it. fn clock(&self) -> Arc; -- cgit v1.3.1