[skip e2e] Add comment for addSegmentID (#15020)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/15029/head
bigsheeper 2022-01-07 17:47:48 +08:00 committed by GitHub
parent a7ad3f2a76
commit 8d24428c4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ func (p *Partition) ID() UniqueID {
return p.partitionID
}
// addSegmentID add segmentID to segmentIDs
func (p *Partition) addSegmentID(segmentID UniqueID) {
p.segmentIDs = append(p.segmentIDs, segmentID)
log.Debug("add a segment to replica", zap.Int64("collectionID", p.collectionID), zap.Int64("partitionID", p.partitionID), zap.Int64("segmentID", segmentID))