mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for setSegment (#10201)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/10226/head
parent
cc8a526105
commit
24f6834192
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue