mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-27 21:45:16 +01:00
Two simulations sharing eu07_odometers.txt could lose a save: A reads the file, B renames its file in, A renames its own over it. B had already cleared its modified flag, so its next save returned at once and its states stayed lost (known limit from the review of #283). A write now leaves the store unconfirmed. The next save with nothing recorded reads and merges the file as before, and writes again only when the file lacks a state of the process, the same or newer by the merge rule (compared as written, rounded to the file's digits). Otherwise the store is confirmed and later saves return at once, as before. A process holding an older state takes the file's one, so two processes settle instead of rewriting each other.