From 93ec046ef299fcd717b58a9933ec013d0593cfdc Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Mon, 18 Oct 2021 20:24:55 +0800 Subject: [PATCH] [skip ci] Add comment for addSegment (#10111) 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 f04b179910..fb6c4ff3bb 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -384,6 +384,7 @@ func (colReplica *collectionReplica) getSegmentIDsPrivate(partitionID UniqueID) } //----------------------------------------------------------------------------------------------------- segment +// addSegment add a new segment to collectionReplica func (colReplica *collectionReplica) addSegment(segmentID UniqueID, partitionID UniqueID, collectionID UniqueID, vChannelID Channel, segType segmentType, onService bool) error { colReplica.mu.Lock() defer colReplica.mu.Unlock()