Update go/store/nbs/journal_record.go

Co-authored-by: Aaron Son <aaron@dolthub.com>
This commit is contained in:
Neil Macneale IV
2025-11-18 10:45:29 -08:00
committed by Neil Macneale IV
parent d1f62274d1
commit 836f7fd0ae

View File

@@ -441,7 +441,7 @@ func peekRootHashAt(journal io.ReaderAt, offset int64) (root hash.Hash, err erro
return rootHashFromBuffer(buf, offset)
}
// peekRootHashFromBuffer extracts the root hash from a root hash journal record stored in |buf|. The buffer must always
// rootHashFromBuffer extracts the root hash from a root hash journal record stored in |buf|. The buffer must always
// be exactly the size of a root hash record (i.e. rootHashRecordSize()), and the CRC is checked before parsing. |offset|
// is only used for error reporting, so it should be relative to the start of the journal file.
func rootHashFromBuffer(buf []byte, offset int64) (root hash.Hash, err error) {