aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/changes.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-09 22:27:40 +0000
committertv <tv@krebsco.de>2026-11-11 23:29:13 +0100
commit5b2232b14aba5d72f07b9d1ae889f9951d6d2569 (patch)
tree15dd8d74679e012bdfbd16a3c13c47ee33b694af /src/swarm/changes.rs
parent2a4316f4a256012120337064df150944880b6453 (diff)
document file: write as a fresh actor once the file is marked closed
With --keep-actor, a node on a file whose last record is Closed writes on as the actor the header names, which takes the file holding every change of that actor. At a clean stop, the node's own workers go on writing until it exits: its alive stamp in the member list, votes, a coordinator's commit. One committed after Closed was appended, and sent by the still-running sync, would be a change of that actor the file lacks, and the next start would make another change with its number. swarm::document_file::close now takes the document's write lock, marks the file at the heads it sees there, and sets a fresh actor before letting go: what the node writes after is no change of the marked actor. A record the file worker appends after Closed (such a write, flushed) leaves the file unmarked, which starts a fresh actor next time.
Diffstat (limited to 'src/swarm/changes.rs')
0 files changed, 0 insertions, 0 deletions