[skip ci] Add comment for removeSegmentPrivate (#10203)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-19 20:30:56 +08:00 committed by GitHub
parent dc42fdb2f0
commit 26fe0d850e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -430,6 +430,7 @@ func (colReplica *collectionReplica) removeSegment(segmentID UniqueID) error {
return colReplica.removeSegmentPrivate(segmentID)
}
// removeSegmentPrivate is private function in collectionReplica, to remove a segment from collectionReplica
func (colReplica *collectionReplica) removeSegmentPrivate(segmentID UniqueID) error {
log.Debug("remove segment", zap.Int64("segmentID", segmentID))
segment, err := colReplica.getSegmentByIDPrivate(segmentID)