[skip ci] Add comment for setSegment (#10201)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/10226/head
bigsheeper 2021-10-19 20:27:09 +08:00 committed by GitHub
parent cc8a526105
commit 24f6834192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -412,6 +412,7 @@ func (colReplica *collectionReplica) addSegmentPrivate(segmentID UniqueID, parti
return nil return nil
} }
// setSegment adds a segment to collectionReplica
func (colReplica *collectionReplica) setSegment(segment *Segment) error { func (colReplica *collectionReplica) setSegment(segment *Segment) error {
colReplica.mu.Lock() colReplica.mu.Lock()
defer colReplica.mu.Unlock() defer colReplica.mu.Unlock()