4 ms·
Imagine two processes appending rows to a csv file. If writes were non-atomic, they might insert partial rows, or overwrite each other.
by Derbasti 9y ago
Imagine two processes appending rows to a csv file. If writes were non-atomic, they might insert partial rows, or overwrite each other.
- convolvatron 9y agothe append case is actually different, it requires serializing the end of file pointer. in the write atomicity case we're asking the file system to order all the writes, and make sure the resulting file shows each of them being completed in their entirety before the next is applied, without any interleaving even if they refer to the same byte offsets in the file