Skip to content

Commit

Permalink
Merge pull request #7846 from Lyndon-Li/avoid-unnecessary-repo-connect
Browse files Browse the repository at this point in the history
Avoid unnecessary repo connect for maintenance
  • Loading branch information
reasonerjt authored May 31, 2024
2 parents 068766a + 2d0bca5 commit a8d77ea
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/repository/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ func (m *manager) PruneRepo(repo *velerov1api.BackupRepository) error {
m.repoLocker.LockExclusive(repo.Name)
defer m.repoLocker.UnlockExclusive(repo.Name)

prd, err := m.getRepositoryProvider(repo)
if err != nil {
return errors.WithStack(err)
}
param, err := m.assembleRepoParam(repo)
if err != nil {
return errors.WithStack(err)
Expand All @@ -208,10 +204,6 @@ func (m *manager) PruneRepo(repo *velerov1api.BackupRepository) error {
return nil
}

if err := prd.BoostRepoConnect(context.Background(), param); err != nil {
return errors.WithStack(err)
}

log.Info("Start to maintenance repo")

maintenanceJob, err := buildMaintenanceJob(m.maintenanceCfg, param, m.client, m.namespace)
Expand Down

0 comments on commit a8d77ea

Please sign in to comment.