aboutsummaryrefslogtreecommitdiff
path: root/format
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-09 14:47:38 +0800
committerGravatar Runxi Yu2026-03-09 14:47:38 +0800
commitc200b086426d66dea3cdfba40c501c82b6da83f0 (patch)
tree2ca9a1591cc36d789ebb60d824260d1706870d57 /format
parentformat/pack/ingest: Handle error from crc.Write just in case (diff)
signatureNo signature
format/pack/ingest: Okay fine wsl_v5
Diffstat (limited to 'format')
-rw-r--r--format/pack/ingest/thin_append.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/format/pack/ingest/thin_append.go b/format/pack/ingest/thin_append.go
index 14ba41bd..161f00a9 100644
--- a/format/pack/ingest/thin_append.go
+++ b/format/pack/ingest/thin_append.go
@@ -29,6 +29,7 @@ func appendBaseObject(state *ingestState, id objectid.ObjectID, realType objectt
headerLenInt64 := int64(len(header))
section := &fileSectionWriter{file: state.packFile, off: startInt64 + headerLenInt64}
crc := crc32.NewIEEE()
+
_, err = crc.Write(header)
if err != nil {
return 0, err