2 ms·
Writes being lost means what, a trashed file? Or merely an incomplete one?
by JulianMorrison 16y ago
Writes being lost means what, a trashed file? Or merely an incomplete one?
- sghemawat 16y agoMerely an incomplete one. Leveldb never writes in place: it always appends to a log file, or merges existing files together to produce new ones. So an OS crash will cause a partially written log record (or a few partially written log records). Leveldb recovery code uses checksums to detect this and will skip the incomplete records.