Add _lastChecksum field and LastChecksum property to MsgBlock tracking the XxHash64 checksum of the last written record (Go: msgBlock.lchk, filestore.go:2204). Capture the checksum from the encoded record trailer on every Write/WriteAt/WriteSkip call. Read-path validation happens naturally through the existing MessageRecord.Decode checksum check.
3.6 KiB
3.6 KiB