Skip to content

Commit

Permalink
pass nil to ShowWorkflow
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Jan 16, 2024
1 parent d667105 commit 5f4d161
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/controller/vitesskeyspace/reconcile_resharding.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ func (r *reconcileHandler) reconcileResharding(ctx context.Context) (reconcile.R
// Look for a resharding workflow. If we find a second one bail out.
var reshardingWorkflow *wrangler.ReplicationStatusResult
for _, workflowName := range workflowList {
var shards []string
for _, shard := range r.vtk.Spec.ShardTemplates() {
shards = append(shards, shard.KeyRange.String())
}
workflow, err := r.wr.ShowWorkflow(ctx, workflowName, r.vtk.Spec.Name, shards)
workflow, err := r.wr.ShowWorkflow(ctx, workflowName, r.vtk.Spec.Name, nil)
if err != nil {
// The only reason this would fail is if runVExec fails. This could be a topo communication failure or any number
// of indeterminable failures. We probably want to requeu faster than the resync period to try again, but wait a bit in
Expand Down

0 comments on commit 5f4d161

Please sign in to comment.