diff --git a/internal/querynode/collection_replica.go b/internal/querynode/collection_replica.go index 6e50f0d95c..7b49e65411 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -490,6 +490,7 @@ func (colReplica *collectionReplica) getSegmentNum() int { return len(colReplica.segments) } +// getSegmentStatistics returns the statistics of segments in collectionReplica func (colReplica *collectionReplica) getSegmentStatistics() []*internalpb.SegmentStats { colReplica.mu.RLock() defer colReplica.mu.RUnlock()