diff --git a/cmd/tools/migration/meta/210_to_220.go b/cmd/tools/migration/meta/210_to_220.go index ec575c67f5..60fa0dafb1 100644 --- a/cmd/tools/migration/meta/210_to_220.go +++ b/cmd/tools/migration/meta/210_to_220.go @@ -146,7 +146,7 @@ func combineToSegmentIndexesMeta220(segmentIndexes SegmentIndexesMeta210, indexB SegmentID: segID, CollectionID: record.GetCollectionID(), PartitionID: record.GetPartitionID(), - NumRows: 0, // TODO: how to set this? + NumRows: buildMeta.GetReq().GetNumRows(), IndexID: indexID, BuildID: record.GetBuildID(), NodeID: buildMeta.GetNodeID(),