aboutsummaryrefslogtreecommitdiff
path: root/buckets.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-02 16:56:16 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-02 16:56:16 -0600
commitca83d171256885ea33508a51e855c7666fc3a140 (patch)
tree3bc60b4b73295b839588555cbe6760a1a439d86c /buckets.go
parentMerge pull request #112 from benbjohnson/perf-stats (diff)
downloaddedo-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 'buckets.go')
0 files changed, 0 insertions, 0 deletions