Re:LevelDB: a fast and lightweight key/value database library
by JulianMorrison on Sunday May 08, 2011 @05:29PM
(#2526758)
Writes being lost means what, a trashed file? Or merely an incomplete one?
[ Parent
| on HN ]
Re:LevelDB: a fast and lightweight key/value database library
by sghemawat on Sunday May 08, 2011 @05:52PM
(#2526799)
Merely 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.