[skip ci] Add comment for hasSegmentPrivate (#10371)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-21 19:48:06 +08:00 committed by GitHub
parent f7a7f41706
commit fd95ad8e4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -479,6 +479,7 @@ func (colReplica *collectionReplica) hasSegment(segmentID UniqueID) bool {
return colReplica.hasSegmentPrivate(segmentID)
}
// hasSegmentPrivate is private function in collectionReplica, to check if collectionReplica has the segment
func (colReplica *collectionReplica) hasSegmentPrivate(segmentID UniqueID) bool {
_, ok := colReplica.segments[segmentID]
return ok