From dc42fdb2f04574f26e40fe8f45c1fdc06415f5ae Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Tue, 19 Oct 2021 20:28:59 +0800 Subject: [PATCH] [skip ci] Add comment for removeSegment (#10202) 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 a7eec381fe..7c988d1f76 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -423,6 +423,7 @@ func (colReplica *collectionReplica) setSegment(segment *Segment) error { return colReplica.addSegmentPrivate(segment.segmentID, segment.partitionID, segment) } +// removeSegment removes a segment from collectionReplica func (colReplica *collectionReplica) removeSegment(segmentID UniqueID) error { colReplica.mu.Lock() defer colReplica.mu.Unlock()