Skip to content

Commit

Permalink
Only do fastpath if currently seedCount > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Jul 9, 2024
1 parent 9cbb268 commit fcd6fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciliation/reconcile_racks.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ func (rc *ReconciliationContext) CheckPodsReady(endpointData httphelper.CassMeta
}

// step 0 - fastpath
if metav1.HasAnnotation(rc.Datacenter.ObjectMeta, api.AllowParallelStartsAnnotations) && rc.Datacenter.Annotations[api.AllowParallelStartsAnnotations] == "true" {
if seedCount > 0 && metav1.HasAnnotation(rc.Datacenter.ObjectMeta, api.AllowParallelStartsAnnotations) && rc.Datacenter.Annotations[api.AllowParallelStartsAnnotations] == "true" {
notReadyPods, err := rc.startBootstrappedNodes(endpointData)
if err != nil {
return result.Error(err)
Expand Down

0 comments on commit fcd6fbe

Please sign in to comment.