Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Meta Checksum #25

Closed
1 task done
benbjohnson opened this issue Feb 12, 2014 · 0 comments · Fixed by #113
Closed
1 task done

Meta Checksum #25

benbjohnson opened this issue Feb 12, 2014 · 0 comments · Fixed by #113
Assignees
Milestone

Comments

@benbjohnson
Copy link
Member

  • Add a checksum to the meta page to guarantee that it is uncorrupted.
@benbjohnson benbjohnson added this to the v0.1.0 milestone Feb 12, 2014
@benbjohnson benbjohnson self-assigned this Feb 12, 2014
@benbjohnson benbjohnson mentioned this issue Feb 12, 2014
benbjohnson added a commit to benbjohnson/bolt that referenced this issue Apr 2, 2014
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 boltdb#25.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant