Skip to content

Commit 0356cb6

Browse files
committed
fix recreating failing backup
1 parent b008e0a commit 0356cb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

percona/controller/pgbackup/controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ func finishBackup(ctx context.Context, c client.Client, pgBackup *v2.PerconaPGBa
548548
return nil, errors.Wrapf(err, "delete %s annotation", pNaming.AnnotationBackupInProgress)
549549
}
550550

551+
if err := c.Delete(ctx, job); err != nil {
552+
return nil, errors.Wrap(err, "delete pg-backup job")
553+
}
554+
551555
return nil, nil
552556
}
553557

0 commit comments

Comments
 (0)