From f35d3424260411471ca54d9e4c92e30e8fca6f49 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Thu, 21 Oct 2021 19:22:50 +0800 Subject: [PATCH] [skip ci] Add comment for getSegmentStatistics (#10373) Signed-off-by: bigsheeper --- internal/querynode/collection_replica.go | 1 + 1 file changed, 1 insertion(+) 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()