[skip e2e] Add comment for newPartition (#15110)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2022-01-10 22:34:09 +08:00 committed by GitHub
parent 67e8c09df5
commit 4174daee80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,7 @@ func (p *Partition) removeSegmentID(segmentID UniqueID) {
log.Debug("remove a segment from replica", zap.Int64("collectionID", p.collectionID), zap.Int64("partitionID", p.partitionID), zap.Int64("segmentID", segmentID)) log.Debug("remove a segment from replica", zap.Int64("collectionID", p.collectionID), zap.Int64("partitionID", p.partitionID), zap.Int64("segmentID", segmentID))
} }
// newPartition returns a new Partition
func newPartition(collectionID UniqueID, partitionID UniqueID) *Partition { func newPartition(collectionID UniqueID, partitionID UniqueID) *Partition {
var newPartition = &Partition{ var newPartition = &Partition{
collectionID: collectionID, collectionID: collectionID,