Skip to content

Commit

Permalink
dedup
Browse files Browse the repository at this point in the history
  • Loading branch information
CascadingRadium committed Oct 3, 2024
1 parent f2fc0bf commit f54492d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,15 +867,6 @@ func (s *SegmentBase) loadDvReaders() error {

s.incrementBytesRead(read)

dataLoc, n := binary.Uvarint(s.mem[pos : pos+binary.MaxVarintLen64])
if n <= 0 {
return fmt.Errorf("loadDvReaders: failed to read the dataLoc "+
"offset for sectionID %v field %v", secID, s.fieldsInv[fieldID])
}
if secID == SectionInvertedTextIndex {
s.dictLocs = append(s.dictLocs, dataLoc)
s.incrementBytesRead(uint64(n))
}
fieldDvReader, err := s.loadFieldDocValueReader(s.fieldsInv[fieldID], fieldLocStart, fieldLocEnd)
if err != nil {
return err
Expand Down

0 comments on commit f54492d

Please sign in to comment.