▲ | AlotOfReading 2 days ago | |||||||||||||||||||||||||||||||||||||||||||
Yes, it's a pretty important error case with storage devices. It's so common that modern storage devices and filesystems include their own protections against it. Your system may or may not have these and bit flips may happen after that point, so WAL redundancy wouldn't be out of place. Sure, the benefits to the incomplete write use case are limited, but there's basically no reason to ever use a fletcher these days. It's also worth mentioning that the VFS checksums are explicitly documented as guarding against storage device bitrot and use the same fletcher algorithm. | ||||||||||||||||||||||||||||||||||||||||||||
▲ | lxgr 2 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||
It would be absolutely out of place if your lower layers already provided it, and not enough if they didn't (since you'd then also need checksums on the actual database file, which SQLite does not provide – all writes happen again there!) | ||||||||||||||||||||||||||||||||||||||||||||
|