Skip to content

Commit

Permalink
fix: enable pitr failed for postgresql (#8879)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4576bb4)
  • Loading branch information
wangyelei committed Feb 6, 2025
1 parent 2e964e9 commit 291697f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/dataprotection/backup/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,12 @@ func (s *Scheduler) convertLastAppliedConfigs(continuousMethod string) {
}

func (s *Scheduler) getLastAppliedConfigsMap() (map[string]string, error) {
lastAppliedConfigAnno := s.BackupSchedule.Annotations[dptypes.LastAppliedConfigsAnnotationKey]
if lastAppliedConfigAnno == "" {
return map[string]string{}, nil
}
resMap := map[string]string{}
if err := json.Unmarshal([]byte(s.BackupSchedule.Annotations[dptypes.LastAppliedConfigsAnnotationKey]), &resMap); err != nil {
if err := json.Unmarshal([]byte(lastAppliedConfigAnno), &resMap); err != nil {
return nil, err
}
return resMap, nil
Expand Down

0 comments on commit 291697f

Please sign in to comment.