[skip ci] Add comment for addSegmentPrivate (#10112)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/10133/head
bigsheeper 2021-10-18 20:26:59 +08:00 committed by GitHub
parent 93ec046ef2
commit f8e7f3f549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -396,6 +396,7 @@ func (colReplica *collectionReplica) addSegment(segmentID UniqueID, partitionID
return colReplica.addSegmentPrivate(segmentID, partitionID, seg)
}
// addSegmentPrivate is private function in collectionReplica, to add a new segment to collectionReplica
func (colReplica *collectionReplica) addSegmentPrivate(segmentID UniqueID, partitionID UniqueID, segment *Segment) error {
partition, err := colReplica.getPartitionByIDPrivate(partitionID)
if err != nil {