Re:Json-Base – Database built as JSON files
by jclulow on Friday July 03, 2020 @12:00AM
(#23720895)
They are if you perform the correct sequence of fsync operations on both the file and the directories, and use a file system which is correctly implemented.
[ Parent
| on HN ]
Re:Json-Base – Database built as JSON files
by chrismorgan on Friday July 03, 2020 @07:13AM
(#23722992)
Renames aren’t atomic on crash.
Re:Json-Base – Database built as JSON files
by badsectoracula on Saturday July 04, 2020 @04:58AM
(#23731084)
What crash?
The article linked above never explains that part, it only assumes that it will happen. From the code it sounds as if the crash can happen in the OS itself (but then the entire kernel will crash). At that point things are completely outside your control and you might as well running on broken hardware.