Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
HoustonPutman committed Jun 14, 2024
1 parent 49a0c84 commit 7f81577
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controllers/solrcloud_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,7 @@ func (r *SolrCloudReconciler) cleanupOrphanPVCs(ctx context.Context, cloud *solr
// Don't use the Spec replicas here, because we might be rolling down 1-by-1 and the PVCs for
// soon-to-be-deleted pods should not be deleted until the pod is deleted.
if util.IsPVCOrphan(pvcItem.Name, *statefulSet.Spec.Replicas) {
if e := r.deletePVC(ctx, pvcItem, logger); e != nil {
err = e
}
r.deletePVC(ctx, pvcItem, logger)
}
}
}
Expand Down

0 comments on commit 7f81577

Please sign in to comment.