0
0

fix bug in handling iterator-done

This commit is contained in:
Marty Schoch 2017-12-13 22:07:37 -05:00
parent 8ffa978ce4
commit e1b0c61e2a

View File

@ -153,10 +153,12 @@ func persistMergedRest(segments []*Segment, drops []*roaring.Bitmap,
if dict != nil && dict.fst != nil {
itr, err2 := dict.fst.Iterator(nil, nil)
if err2 != nil {
if err2 != nil && err2 != vellum.ErrIteratorDone {
return nil, err2
}
itrs = append(itrs, itr)
if itr != nil {
itrs = append(itrs, itr)
}
}
}