[skip ci] Add comment for removeSegment (#10202)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-19 20:28:59 +08:00 committed by GitHub
parent 24f6834192
commit dc42fdb2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()