basho/bitcask — Issue #30: CRC check should be performed before unpacking data
Author: dreverri
Created: 2012-01-16 22:21:04+00:00
State: open

Currently Bitcask performs a CRC check after unpacking data. This may lead to a `badmatch` error when unpacking the data if the data is corrupt. Checking the CRC before unpacking the data would avoid this `badmatch` error.

Relevant section of code:
https://github.com/basho/bitcask/blob/d8958d98d6619a1a8b9e71a7a7b19a7d9fb38ef0/src/bitcask_fileops.erl#L171-181