- Published on
Investigation · Part 19 of 20 · What survives a crash
Updating Several Files at Once With One Rename
Two files saved safely one after the other are not saved safely together: a kill left a new config with old data 85 times in 300. A version directory and one symlink rename, or renameat2 with RENAME_EXCHANGE, switched both files at once in every test. LevelDB does the same with CURRENT.