mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for hasSegmentPrivate (#10371)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/10387/head
parent
f7a7f41706
commit
fd95ad8e4a
|
@ -479,6 +479,7 @@ func (colReplica *collectionReplica) hasSegment(segmentID UniqueID) bool {
|
||||||
return colReplica.hasSegmentPrivate(segmentID)
|
return colReplica.hasSegmentPrivate(segmentID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// hasSegmentPrivate is private function in collectionReplica, to check if collectionReplica has the segment
|
||||||
func (colReplica *collectionReplica) hasSegmentPrivate(segmentID UniqueID) bool {
|
func (colReplica *collectionReplica) hasSegmentPrivate(segmentID UniqueID) bool {
|
||||||
_, ok := colReplica.segments[segmentID]
|
_, ok := colReplica.segments[segmentID]
|
||||||
return ok
|
return ok
|
||||||
|
|
Loading…
Reference in New Issue