Skip to content

Commit

Permalink
Merge pull request #1812 from percona/remove-not-used-function
Browse files Browse the repository at this point in the history
K8SPSMDB-1267 Remove unused function: NewRestoreJob(cr *api.PerconaServerMongoDBRestore) Job
  • Loading branch information
hors authored Jan 28, 2025
2 parents 4fc44c4 + adcadb1 commit 9d11a46
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/psmdb/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ func NewBackupJob(name string) Job {
}
}

func NewRestoreJob(cr *api.PerconaServerMongoDBRestore) Job {
j := Job{
Name: cr.Name,
Type: TypeRestore,
}

if cr.Spec.PITR != nil {
j.Type = TypePITRestore
}

return j
}

func IsPBMNotConfiguredError(err error) bool {
return strings.Contains(err.Error(), "mongo: no documents in result")
}
Expand Down

0 comments on commit 9d11a46

Please sign in to comment.