Skip to content

Commit

Permalink
Revert "*: when placement conflicts with tiflash, cancel the job (pin…
Browse files Browse the repository at this point in the history
…gcap#30945)"

This reverts commit b53f349.
  • Loading branch information
Reminiscent committed Dec 23, 2021
1 parent 9e6e687 commit 1bbc14a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ddl/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,6 @@ func (w *worker) onSetTableFlashReplica(t *meta.Meta, job *model.Job) (ver int64
}

if replicaInfo.Count > 0 && tableHasPlacementSettings(tblInfo) {
job.State = model.JobStateCancelled
return ver, errors.Trace(ErrIncompatibleTiFlashAndPlacement)
}

Expand Down Expand Up @@ -1280,7 +1279,6 @@ func onAlterTablePartitionPlacement(t *meta.Meta, job *model.Job) (ver int64, er
}

if tblInfo.TiFlashReplica != nil && tblInfo.TiFlashReplica.Count > 0 {
job.State = model.JobStateCancelled
return 0, errors.Trace(ErrIncompatibleTiFlashAndPlacement)
}

Expand Down Expand Up @@ -1352,7 +1350,6 @@ func onAlterTablePlacement(d *ddlCtx, t *meta.Meta, job *model.Job) (ver int64,
}

if tblInfo.TiFlashReplica != nil && tblInfo.TiFlashReplica.Count > 0 {
job.State = model.JobStateCancelled
return 0, errors.Trace(ErrIncompatibleTiFlashAndPlacement)
}

Expand Down

0 comments on commit 1bbc14a

Please sign in to comment.