Skip to content

Commit

Permalink
br: remove timeout context to scan regions when import sst files (pin…
Browse files Browse the repository at this point in the history
  • Loading branch information
Leavrth authored Jun 3, 2024
1 parent 3394b20 commit 8e3a55e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions br/pkg/restore/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,9 @@ func (importer *FileImporter) ImportSSTFiles(
}

err = utils.WithRetry(ctx, func() error {
tctx, cancel := context.WithTimeout(ctx, importScanRegionTime)
defer cancel()
// Scan regions covered by the file range
regionInfos, errScanRegion := split.PaginateScanRegion(
tctx, importer.metaClient, startKey, endKey, split.ScanRegionPaginationLimit)
ctx, importer.metaClient, startKey, endKey, split.ScanRegionPaginationLimit)
if errScanRegion != nil {
return errors.Trace(errScanRegion)
}
Expand Down

0 comments on commit 8e3a55e

Please sign in to comment.