mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-09 17:19:45 -04:00
2ddcc0a1e7
As reported in #4886, `metadata.toml` can get get lost if the server crashes at an unfortunate point in time. To mitigate that, make `path_type::write` replace the file atomically, and issue `fsync` on the file and enclosing directory. # Expected complexity level and risk 1