Skip to content

Commit a6ae71e

Browse files
committed
restore: set correct number of link workers
#153065 contains a typo that ensures the number of link workers is always 0 or 1. This patch fixes the bug. Epic: None Release note: None
1 parent 1572ff3 commit a6ae71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/backup/restore_online.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,6 @@ func getNumOnlineRestoreLinkWorkers(ctx context.Context, execCtx sql.JobExecCont
10611061
if err != nil {
10621062
return 0, err
10631063
}
1064-
numNodes := min(len(sqlInstanceIDs), 1)
1064+
numNodes := max(len(sqlInstanceIDs), 1)
10651065
return defaultLinkWorkersPerNode * numNodes, nil
10661066
}

0 commit comments

Comments
 (0)