Skip to content

Commit

Permalink
merge conflicts resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Thejas-bhat committed Sep 20, 2023
1 parent 9551f50 commit 14ded4b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions section_vector_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package zap
import (
"encoding/binary"
"fmt"
"log"
"math"

"github.com/RoaringBitmap/roaring"
Expand Down Expand Up @@ -65,7 +64,6 @@ func remapDocIDs(oldIDs *roaring.Bitmap, newIDs []uint64) *roaring.Bitmap {
func (v *vectorIndexSection) Merge(opaque map[int]resetable, segments []*SegmentBase, drops []*roaring.Bitmap, fieldsInv []string,
newDocNumsIn [][]uint64, w *CountHashWriter, closeCh chan struct{}) error {
vo := v.getvectorIndexOpaque(opaque)
log.Printf("invoking merge %v", newDocNumsIn)
LOOP:
for fieldID, _ := range fieldsInv {

Expand Down Expand Up @@ -328,7 +326,6 @@ func (vo *vectorIndexOpaque) writeVectorIndexes(w *CountHashWriter) (offset uint
for vecID, _ := range content.vecs {
docIDs := vo.vecIDMap[vecID].docIDs
// write the vecID
log.Printf("vecID to docIDs mapping %v -> %v", vecID, docIDs.ToArray())
_, err := writeUvarints(w, uint64(vecID))
if err != nil {
return 0, err
Expand Down Expand Up @@ -397,7 +394,7 @@ func (vo *vectorIndexOpaque) process(field index.VectorField, fieldID uint16, do
func hashCode(a []float32) uint64 {
var rv uint64
for _, v := range a {
rv = uint64(math.Float32bits(v)) ^ (rv)
rv = uint64(math.Float32bits(v)) + (31 * rv)
}

return rv
Expand Down

0 comments on commit 14ded4b

Please sign in to comment.