0
0
Fork 0

Merge pull request #837 from blevesearch/docnum_missing_fix

MB-28753 - docNumber "xx" not found err with updates
This commit is contained in:
Sreekanth Sivasankaran 2018-03-19 14:36:30 +05:30 committed by GitHub
commit cf8e0d63bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ func (s *Scorch) introduceSegment(next *segmentIntroduction) error {
newSnapshot.segment = append(newSnapshot.segment, newss)
root.segment[i].segment.AddRef()
newSnapshot.offsets = append(newSnapshot.offsets, running)
running += root.segment[i].Count()
running += newss.segment.Count()
}
}
@ -315,7 +315,7 @@ func (s *Scorch) introduceMerge(nextMerge *segmentMerge) {
})
root.segment[i].segment.AddRef()
newSnapshot.offsets = append(newSnapshot.offsets, running)
running += root.segment[i].Count()
running += root.segment[i].segment.Count()
}
}