diff --git a/pkg/shared/backup.go b/pkg/shared/backup.go index 17e4f537..8bc281b8 100644 --- a/pkg/shared/backup.go +++ b/pkg/shared/backup.go @@ -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)