Skip to content

Commit

Permalink
fix(restore): reset bandwidth limit for restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Leszczynski committed Sep 2, 2024
1 parent 23610c5 commit 01cb187
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/service/restore/tables_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ func (w *tablesWorker) stageRestoreData(ctx context.Context) error {
}
hosts := hostsS.List()

for _, h := range hosts {
if err := w.client.RcloneSetBandwidthLimit(ctx, h, 0); err != nil {
return errors.Wrapf(err, "reset bandwidth limit on %s", h)
}
}

if w.target.UnpinAgentCPU {
defer func() {
for _, h := range hosts {
Expand Down

0 comments on commit 01cb187

Please sign in to comment.