[skip e2e] Add comment for removeSegmentID (#15109)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/15132/head
bigsheeper 2022-01-10 22:32:14 +08:00 committed by GitHub
parent 531a51bd75
commit 67e8c09df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ func (p *Partition) addSegmentID(segmentID UniqueID) {
log.Debug("add a segment to replica", zap.Int64("collectionID", p.collectionID), zap.Int64("partitionID", p.partitionID), zap.Int64("segmentID", segmentID))
}
// removeSegmentID removes segmentID from segmentIDs
func (p *Partition) removeSegmentID(segmentID UniqueID) {
tmpIDs := make([]UniqueID, 0)
for _, id := range p.segmentIDs {