Skip to content

Commit

Permalink
revert backup success status check
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Dec 22, 2023
1 parent ef5076e commit 4ce77f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/shared/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ func (b *BackupShared) BackupRun(backupRoutine *model.BackupRoutine, backupPolic
return nil
}

if unsafe.Pointer(backupStatus) == C.RUN_BACKUP_SUCCESS {
return result
}

setStatistics(result, backupStatus)

C.backup_status_destroy(backupStatus)
Expand Down

0 comments on commit 4ce77f2

Please sign in to comment.