-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
enhancementNew feature or requestNew feature or request
Description
If data will be corrupted, then key+value size could be decoded into large value: unneccessary allocations and unneccessary disk read will follow.
It is better to add checsum for key+value size header to early detect such corruption.
And then crc32 checksum for data path could be resided in a header as well, therefore there will be no need to allocate buffer for both header and data.
I suppose, header could have following structure:
keySize = 2 bytes
typeAndValueSize = 4 bytes
dataCRC = 4 bytes
headerCRC = 4 bytes
Therefore headerCRC will check dataCRC as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request