Skip to content

Commit

Permalink
fix: fix threadsNum in AsyncBackup while handle backup
Browse files Browse the repository at this point in the history
Signed-off-by: mlycore <[email protected]>
  • Loading branch information
mlycore committed Nov 14, 2023
1 parent 202e269 commit 12451b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pitr/agent/internal/handler/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func Backup(ctx *fiber.Ctx) error {
return fmt.Errorf("add instance failed, err wrap: %w", err)
}

backupID, err := pkg.OG.AsyncBackup(in.DnBackupPath, in.Instance, in.DnBackupMode, 1, in.DBPort)
backupID, err := pkg.OG.AsyncBackup(in.DnBackupPath, in.Instance, in.DnBackupMode, in.DnThreadsNum, in.DBPort)
if err != nil {
efmt := "pkg.OG.AsyncBackup[path=%s,instance=%s,mode=%s] failure, err wrap: %w"
return fmt.Errorf(efmt, in.DnBackupPath, in.Instance, in.DnBackupMode, err)
Expand Down

0 comments on commit 12451b8

Please sign in to comment.