From ff4cd4925f5728b595d86592344a07c60bc79797 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Wed, 20 Oct 2021 19:23:28 +0800 Subject: [PATCH] [skip ci] Add comment for getSegmentByID (#10291) 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 59ef8db858..dda53e4625 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -455,6 +455,7 @@ func (colReplica *collectionReplica) removeSegmentPrivate(segmentID UniqueID) er return nil } +// getSegmentByID returns the segment which id is segmentID func (colReplica *collectionReplica) getSegmentByID(segmentID UniqueID) (*Segment, error) { colReplica.mu.RLock() defer colReplica.mu.RUnlock()