Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aliiohs committed Mar 21, 2019
1 parent ae18f5c commit 7fe3ad1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
4 changes: 1 addition & 3 deletions executor/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ func (b *executorBuilder) buildCancelDDLJobs(v *plannercore.CancelDDLJobs) Execu

func (b *executorBuilder) buildChange(v *plannercore.Change) Executor {
return &ChangeExec{
NodeType: v.NodeType,
State: v.State,
NodeID: v.NodeID,
ChangeStmt: v.ChangeStmt,
}
}

Expand Down
6 changes: 2 additions & 4 deletions executor/change.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package executor

import (
"context"
"github.com/pingcap/parser/ast"
"strings"

"github.com/pingcap/errors"
Expand All @@ -26,10 +27,7 @@ import (
// ChangeExec represents a change executor.
type ChangeExec struct {
baseExecutor

NodeType string
State string
NodeID string
*ast.ChangeStmt
}

// Next implements the Executor Next interface.
Expand Down
5 changes: 1 addition & 4 deletions planner/core/common_plans.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ type CancelDDLJobs struct {
// Change represents a change plan.
type Change struct {
baseSchemaProducer

NodeType string
State string
NodeID string
*ast.ChangeStmt
}

// Prepare represents prepare plan.
Expand Down
4 changes: 1 addition & 3 deletions planner/core/planbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,7 @@ func (b *PlanBuilder) Build(node ast.Node) (Plan, error) {

func (b *PlanBuilder) buildChange(v *ast.ChangeStmt) (Plan, error) {
exe := &Change{
NodeType: v.NodeType,
State: v.State,
NodeID: v.NodeID,
ChangeStmt: v,
}
return exe, nil
}
Expand Down

0 comments on commit 7fe3ad1

Please sign in to comment.