wp
This commit is contained in:
@@ -194,7 +194,7 @@ func (s MeasuresAppendWithGrowRecord) Pack(w io.Writer) {
|
||||
bin.WriteUint32(w, tail.PageNo)
|
||||
bin.WriteBool(w, tail.Reused)
|
||||
bin.WriteUint32(w, tail.CRC32)
|
||||
bin.WriteVarSize(w, len(tail.Records)/indexRecordSize)
|
||||
bin.WriteVarSize(w, len(tail.Records)/IndexRecordSize)
|
||||
w.Write(tail.Records)
|
||||
} else {
|
||||
bin.WriteBool(w, false)
|
||||
@@ -207,7 +207,7 @@ func (s MeasuresAppendWithGrowRecord) Pack(w io.Writer) {
|
||||
w.Write(p.Content)
|
||||
}
|
||||
// level tail
|
||||
bin.WriteVarSize(w, len(level.TailRecords)/indexRecordSize)
|
||||
bin.WriteVarSize(w, len(level.TailRecords)/IndexRecordSize)
|
||||
w.Write(level.TailRecords)
|
||||
}
|
||||
}
|
||||
@@ -313,7 +313,7 @@ func (s *MeasuresAppendWithGrowRecord) Parse(r io.Reader) (err error) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
tail.Records, err = bin.ReadN(r, recordsCount*indexRecordSize)
|
||||
tail.Records, err = bin.ReadN(r, recordsCount*IndexRecordSize)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
@@ -344,7 +344,7 @@ func (s *MeasuresAppendWithGrowRecord) Parse(r io.Reader) (err error) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
level.TailRecords, err = bin.ReadN(r, recordsCount*indexRecordSize)
|
||||
level.TailRecords, err = bin.ReadN(r, recordsCount*IndexRecordSize)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user