4 ms·
One important note: make sure you carefully consider using atomic renames and such for manipulating the files! Overwrite in place is a great way to end up with
by nieve 6y ago
One important note: make sure you carefully consider using atomic renames and such for manipulating the files! Overwrite in place is a great way to end up with a corrupted item if something goes desperately wrong and you're not protected by COW or data journaling.
- zaphar 6y agoUsually you write these sorts of things as append only with an optional garbage collect. You get a minimal sort of Atomicity with that.