Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ywqzzy committed Aug 29, 2023
1 parent 485e7dc commit 5054030
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ddl/disttask_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,18 @@ func (*litBackfillFlowHandle) OnTicker(_ context.Context, _ *proto.Task) {
}

// ProcessNormalFlow processes the normal flow.
func (h *litBackfillFlowHandle) ProcessNormalFlow(ctx context.Context, _ dispatcher.TaskHandle, gTask *proto.Task) (metas [][]byte, err error) {
func (h *litBackfillFlowHandle) ProcessNormalFlow(ctx context.Context, _ dispatcher.TaskHandle, gTask *proto.Task) ([][]byte, error) {
var globalTaskMeta BackfillGlobalMeta
if err = json.Unmarshal(gTask.Meta, &globalTaskMeta); err != nil {
if err := json.Unmarshal(gTask.Meta, &globalTaskMeta); err != nil {
return nil, err
}
job := &globalTaskMeta.Job
var tblInfo *model.TableInfo
tblInfo, err = getTblInfo(h.d, job)
tblInfo, err := getTblInfo(h.d, job)
if err != nil {
return nil, err
}
var subTaskMetas [][]byte

// generate partition table's plan.
if tblInfo.Partition != nil {
if gTask.Step != proto.StepInit {
Expand Down

0 comments on commit 5054030

Please sign in to comment.