Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Nov 22, 2024
1 parent 02504bb commit 1c60730
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index/scorch/optimize_knn.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,8 @@ func (o *OptimizeVR) Finish() error {
atomic.AddUint64(&o.snapshot.parent.stats.TotKNNSearches, uint64(1))

if pl != nil && pl.Count() > 0 {
// postings and iterators are already alloc'ed when
// IndexSnapshotVectorReader is created
vr.postings[index] = pl
vr.iterators[index] = pl.Iterator(vr.iterators[index])
} else {
vr.iterators[index] = &emptyVecPostingsIterator{}
}
}
go vecIndex.Close()
Expand Down

0 comments on commit 1c60730

Please sign in to comment.