journaling とかその好例ね。WAL(write ahead logging)なら先に log(journal)に書き込んでから実際に中味を storage に書いて,storage に確かに書けたら log を消す。OS 起動時に log が残ってたらそれはどこかで書き損じてるのまま電源が落ちたのだろうから log の中味を改めて storage に書く。DB の transaction と全く同じだけど。
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.