3 ms·
The WAL approach solves a different problem: "how do we provide durable writes with minimal performance impact?" WAL does more than that. Part of providing du
by btilly 16y ago
The WAL approach solves a different problem: "how do we provide durable writes with minimal performance impact?"
WAL does more than that. Part of providing durable writes is to be able to fix up the potentially corrupted associated binary data structure on disk on startup. So, for instance, if you wrote a link before the associated node is actually saved to disk, then when you replay the WAL you're guaranteed to write the link and the node, and are not going to be corrupted.