diff --git a/internal/querynode/collection_replica.go b/internal/querynode/collection_replica.go index c2f0d7f645..a7eec381fe 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -412,6 +412,7 @@ func (colReplica *collectionReplica) addSegmentPrivate(segmentID UniqueID, parti return nil } +// setSegment adds a segment to collectionReplica func (colReplica *collectionReplica) setSegment(segment *Segment) error { colReplica.mu.Lock() defer colReplica.mu.Unlock()