Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
D3Hunter committed Jan 5, 2024
1 parent 9ff6d40 commit d563285
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions br/pkg/lightning/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ func (l *Lightning) adjust(i *TikvImporter) {
if len(l.MetaSchemaName) == 0 {
l.MetaSchemaName = defaultMetaSchemaName
}
// RegionConcurrency > NumCPU is meaningless.
cpuCount := runtime.NumCPU()
if l.RegionConcurrency > cpuCount {
l.RegionConcurrency = cpuCount
}
}
}

Expand Down

0 comments on commit d563285

Please sign in to comment.