lightning: fix logged content of "Sample source data" (#65340)

close pingcap/tidb#65337
This commit is contained in:
kennytm
2026-01-07 20:52:47 +08:00
committed by GitHub
parent 9c4fa27333
commit 09ef45f7f8

View File

@ -783,7 +783,7 @@ outloop:
if rowSize > 0 && kvSize > rowSize {
resultIndexRatio = float64(kvSize) / float64(rowSize)
}
logutil.Logger(ctx).Info("Sample source data", zap.String("table", tableMeta.Name), zap.Float64("IndexRatio", tableMeta.IndexRatio), zap.Bool("IsSourceOrder", tableMeta.IsRowOrdered))
logutil.Logger(ctx).Info("Sample source data", zap.String("table", tableMeta.Name), zap.Float64("IndexRatio", resultIndexRatio), zap.Bool("IsSourceOrder", isRowOrdered))
return resultIndexRatio, isRowOrdered, nil
}