Skip to content

Commit

Permalink
fix: fix threadsNum in AsyncBackup while handle backup (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlycore authored Nov 14, 2023
1 parent 8fcdf3c commit 0254f8c
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 0254f8c

Please sign in to comment.