mirror of
https://github.com/dolthub/dolt.git
synced 2025-12-30 08:50:01 -06:00
Update go/store/nbs/journal_record.go
Co-authored-by: Aaron Son <aaron@dolthub.com>
This commit is contained in:
committed by
Neil Macneale IV
parent
d1f62274d1
commit
836f7fd0ae
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user