From a3ce9531ce7dea45915ede7cbdd92b8ab0e417b8 Mon Sep 17 00:00:00 2001 From: Chunzhu Li Date: Mon, 28 Nov 2022 15:41:42 +0800 Subject: [PATCH] address comment --- br/pkg/lightning/mydump/region.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/br/pkg/lightning/mydump/region.go b/br/pkg/lightning/mydump/region.go index 796a09a38a3f3..c665682511ad7 100644 --- a/br/pkg/lightning/mydump/region.go +++ b/br/pkg/lightning/mydump/region.go @@ -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),