Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddl: add schema name for some ddl jobs #15901

Merged
merged 1 commit into from
Mar 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ddl/ddl_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3057,6 +3057,7 @@ func (d *ddl) AlterTableSetTiFlashReplica(ctx sessionctx.Context, ident ast.Iden

job := &model.Job{
SchemaID: schema.ID,
SchemaName: schema.Name.L,
TableID: tb.Meta().ID,
Type: model.ActionSetTiFlashReplica,
BinlogInfo: &model.HistoryInfo{},
Expand Down Expand Up @@ -3091,6 +3092,7 @@ func (d *ddl) UpdateTableReplicaInfo(ctx sessionctx.Context, physicalID int64, a

job := &model.Job{
SchemaID: db.ID,
SchemaName: db.Name.L,
TableID: tbInfo.ID,
Type: model.ActionUpdateTiFlashReplicaStatus,
BinlogInfo: &model.HistoryInfo{},
Expand Down Expand Up @@ -3412,6 +3414,7 @@ func (d *ddl) CreatePrimaryKey(ctx sessionctx.Context, ti ast.Ident, indexName m
sqlMode := ctx.GetSessionVars().SQLMode
job := &model.Job{
SchemaID: schema.ID,
SchemaName: schema.Name.L,
TableID: t.Meta().ID,
Type: model.ActionAddPrimaryKey,
BinlogInfo: &model.HistoryInfo{},
Expand Down