Skip to content

Commit

Permalink
admin: only check public index (#8750)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored and winkyao committed Dec 19, 2018
1 parent 6658ae7 commit 2b77a58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ func (e *CheckTableExec) Next(ctx context.Context, chk *chunk.Chunk) error {
return errors.Trace(err)
}
for _, idx := range tb.Indices() {
if idx.Meta().State != model.StatePublic {
continue
}
txn := e.ctx.Txn(true)
if !txn.Valid() {
if failer, ok := txn.(sqlexec.Failer); ok && failer.Fail() != nil {
Expand Down

0 comments on commit 2b77a58

Please sign in to comment.