Update history_trienode.go

This commit is contained in:
rjl493456442 2026-01-30 10:37:49 +08:00 committed by GitHub
parent f471ec9f8f
commit ec5ab803fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -396,7 +396,7 @@ func decodeRestartTrailer(keySection []byte) ([]uint32, []uint32, int, error) {
return nil, nil, 0, fmt.Errorf("key section too short, size: %d", len(keySection))
}
nRestarts := binary.BigEndian.Uint32(keySection[len(keySection)-4:])
// Decode the trailer
var (
keyOffsets = make([]uint32, 0, int(nRestarts))