risinglight
risinglight copied to clipboard
WIP storage: checksum BlockType in block header
OK,let me research it.
I think calculate checksum field by field is not very elegant because we may need to add more fields later. Checksum a whole chunk of bytes may be better
I think we may need to change the encoding of block headers (e.g., put block type and checksum at the end?) in order to support this.
Originally posted by @skyzh in https://github.com/risinglightdb/risinglight/issues/247#issuecomment-1024847607