diff options
| author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 16:56:16 -0600 |
|---|---|---|
| committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 16:56:16 -0600 |
| commit | ca83d171256885ea33508a51e855c7666fc3a140 (patch) | |
| tree | 3bc60b4b73295b839588555cbe6760a1a439d86c /quick_test.go | |
| parent | Merge pull request #112 from benbjohnson/perf-stats (diff) | |
| download | dedo-ca83d171256885ea33508a51e855c7666fc3a140.tar.gz dedo-ca83d171256885ea33508a51e855c7666fc3a140.tar.xz | |
Add meta page checksums.
This commit adds checksums to the meta pages on every write. When the
database loads, it verifies the checksums on the meta pages and returns
an error if either one is corrupt.
In the future, it should fallback to the previous meta page but for right
now it just hard fails. This is at least preferable to opening the database
and getting a random error or further corruption.
Fixes #25.
Diffstat (limited to 'quick_test.go')
0 files changed, 0 insertions, 0 deletions
