Skip to content

Commit

Permalink
ddl: add schema name for some ddl jobs (#15901)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored Mar 31, 2020
1 parent b66bda8 commit a6bebab
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit a6bebab

Please sign in to comment.