Skip to content

Commit

Permalink
Fix Panic on mariadb resume cli
Browse files Browse the repository at this point in the history
Signed-off-by: souravbiswassanto <[email protected]>
  • Loading branch information
souravbiswassanto committed Oct 10, 2024
1 parent 6d82a89 commit 02bda3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resumer/mariadb.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (e *MariaDBResumer) Resume(name, namespace string) (bool, error) {

resumeAll := !(e.onlyBackup || e.onlyDb || e.onlyArchiver)

if e.onlyArchiver || resumeAll {
if (e.onlyArchiver || resumeAll) && db.Spec.Archiver != nil {
if err := pautil.PauseOrResumeMariaDBArchiver(e.kc, false, db.Spec.Archiver.Ref); err != nil {
return false, err
}
Expand Down

0 comments on commit 02bda3c

Please sign in to comment.