Skip to content

Commit

Permalink
PBM-1414 Set Number of Parallel Collections to 1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
radoslawszulgo authored Oct 30, 2024
1 parent 2a6b65b commit 0223fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/pbm-agent/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (a *Agent) Restore(ctx context.Context, r *ctrl.RestoreCmd, opid ctrl.OPID,
return
}

numParallelColls := runtime.NumCPU() / 2
numParallelColls := 1
if r.NumParallelColls != nil && *r.NumParallelColls > 0 {
numParallelColls = int(*r.NumParallelColls)
} else if cfg.Restore != nil && cfg.Restore.NumParallelCollections > 0 {
Expand Down

0 comments on commit 0223fb0

Please sign in to comment.