[skip ci] Add comment for hasSegment (#11251)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/11271/head
bigsheeper 2021-11-04 18:59:29 +08:00 committed by GitHub
parent 3f2455d03f
commit b028e58c8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ type ReplicaInterface interface {
removeSegment(segmentID UniqueID) error
// getSegmentByID returns the segment which id is segmentID
getSegmentByID(segmentID UniqueID) (*Segment, error)
// hasSegment returns true if collectionReplica has the segment, false otherwise
hasSegment(segmentID UniqueID) bool
getSegmentNum() int
getSegmentStatistics() []*internalpb.SegmentStats