diff options
| author | tv <tv@krebsco.de> | 2026-11-09 22:25:53 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-11 23:28:59 +0100 |
| commit | 2a4316f4a256012120337064df150944880b6453 (patch) | |
| tree | 00d607060c3947b37e01a60ca752d7f1cda0b60b /src/api/users.rs | |
| parent | 925f566990fdd4043df691b3277a2a50b937ec1b (diff) | |
document file: undo the clean stop's mark before deciding the actor
At start, a node on a document file appends an Opened record before it
writes anything, so that a Closed record before it no longer says the
file holds every change of the actor it names. It does so now before
deciding which actor to write as, and DocumentFile::open says whether it
could: where the append fails (the disk full, permissions), the file
still ends with Closed, and later appends likely fail too. A crash, or a
clean stop whose last append failed (close then sees the file behind and
writes no mark), would leave that Closed standing for a run the file
never got. So with --keep-actor, the node writes on as the actor of
before only where the file was marked as opened; else it writes as a
fresh actor and warns.
Diffstat (limited to 'src/api/users.rs')
0 files changed, 0 insertions, 0 deletions
