Skip to content

Commit

Permalink
Fix compaction task name
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Nov 13, 2023
1 parent 63da254 commit 97f9a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/tasks/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func CreateCompactionTask(ctx context.Context, kubeClient client.Client, dc *cas
if err != nil {
return nil, err
}
return CreateTask(ctx, kubeClient, controlapi.CommandRebuild, dc, args)
return CreateTask(ctx, kubeClient, controlapi.CommandCompaction, dc, args)
}

func compactionArguments(rackName, podName, keyspaceName string, tables []string) (*controlapi.JobArguments, error) {
Expand All @@ -142,7 +142,7 @@ func CreateClusterCompactionTask(ctx context.Context, kubeClient client.Client,
if err != nil {
return nil, err
}
return CreateClusterTask(ctx, kubeClient, controlapi.CommandRebuild, namespace, cluster, []string{dcName}, args)
return CreateClusterTask(ctx, kubeClient, controlapi.CommandCompaction, namespace, cluster, []string{dcName}, args)
}

// Move
Expand Down

0 comments on commit 97f9a79

Please sign in to comment.