Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunzhu committed Nov 28, 2022
1 parent 46ddf53 commit a3ce953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/lightning/mydump/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func MakeSourceFileRegion(
},
}

if fi.FileMeta.Compression == CompressionNone && tableRegion.Size() > tableRegionSizeWarningThreshold {
if fi.FileMeta.Compression == CompressionNone && fi.FileMeta.FileSize > tableRegionSizeWarningThreshold {
log.FromContext(ctx).Warn(
"file is too big to be processed efficiently; we suggest splitting it at 256 MB each",
zap.String("file", fi.FileMeta.Path),
Expand Down

0 comments on commit a3ce953

Please sign in to comment.