diff options
| author | Adam Soltys <[email protected]> | 2026-10-16 12:54:48 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-16 12:54:48 -0700 |
| commit | c88f0d860c089e49cebabd53d652859d04143457 (patch) | |
| tree | e02fff3d51f0c36680105e9ba8af359b5a846744 /bridge/server.js | |
| parent | b31437b5a77b371c7788993359553471692af4c6 (diff) | |
| download | coinosv3-server-c88f0d860c089e49cebabd53d652859d04143457.tar.gz coinosv3-server-c88f0d860c089e49cebabd53d652859d04143457.zip | |
names: refuse a corrupt state file; flush before replacing it
The loader treated any read or parse error as a fresh registrar and started
with no names, then persisted that empty state over the real one. A crash
can leave the state file truncated, because persist() renamed the new file
into place without flushing it. Now a missing file is a fresh start, an
unreadable one stops startup, and persist() fsyncs the file and its
directory around the rename.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'bridge/server.js')
0 files changed, 0 insertions, 0 deletions
