Skip to content

Commit

Permalink
Merge pull request #92 from PowerfooI/fix/backup-connection
Browse files Browse the repository at this point in the history
Fix: old connection of backup reconciler
  • Loading branch information
powerfooI authored Nov 6, 2023
2 parents 52875ff + 74b181e commit 5389b4d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/controller/obtenantbackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ type OBTenantBackupReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder

con *operation.OceanbaseOperationManager
}

//+kubebuilder:rbac:groups=oceanbase.oceanbase.com,resources=obtenantbackups,verbs=get;list;watch;create;update;patch;delete
Expand Down Expand Up @@ -259,9 +257,6 @@ func (r *OBTenantBackupReconciler) maintainRunningArchiveLogJob(ctx context.Cont
}

func (r *OBTenantBackupReconciler) getObOperationClient(ctx context.Context, job *v1alpha1.OBTenantBackup) (*operation.OceanbaseOperationManager, error) {
if r.con != nil {
return r.con, nil
}
var err error
logger := log.FromContext(ctx)
obcluster := &v1alpha1.OBCluster{}
Expand All @@ -276,6 +271,5 @@ func (r *OBTenantBackupReconciler) getObOperationClient(ctx context.Context, job
if err != nil {
return nil, errors.Wrap(err, "get oceanbase operation manager")
}
r.con = con
return con, nil
}

0 comments on commit 5389b4d

Please sign in to comment.