From fd95ad8e4a788926b4d67207bcb4d8ed301f09bb Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Thu, 21 Oct 2021 19:48:06 +0800 Subject: [PATCH] [skip ci] Add comment for hasSegmentPrivate (#10371) 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 7b49e65411..6c2a2ea8d5 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -479,6 +479,7 @@ func (colReplica *collectionReplica) hasSegment(segmentID UniqueID) bool { return colReplica.hasSegmentPrivate(segmentID) } +// hasSegmentPrivate is private function in collectionReplica, to check if collectionReplica has the segment func (colReplica *collectionReplica) hasSegmentPrivate(segmentID UniqueID) bool { _, ok := colReplica.segments[segmentID] return ok