mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for hasSegment (#10293)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/10298/head
parent
ff4cd4925f
commit
455172202a
|
@ -472,6 +472,7 @@ func (colReplica *collectionReplica) getSegmentByIDPrivate(segmentID UniqueID) (
|
||||||
return segment, nil
|
return segment, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// hasSegment returns true if collectionReplica has the segment, false otherwise
|
||||||
func (colReplica *collectionReplica) hasSegment(segmentID UniqueID) bool {
|
func (colReplica *collectionReplica) hasSegment(segmentID UniqueID) bool {
|
||||||
colReplica.mu.RLock()
|
colReplica.mu.RLock()
|
||||||
defer colReplica.mu.RUnlock()
|
defer colReplica.mu.RUnlock()
|
||||||
|
|
Loading…
Reference in New Issue