Skip to content

Commit

Permalink
admin: only check public index (#8748)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored Dec 19, 2018
1 parent 7528a05 commit 18b2a78
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 @@ -466,6 +466,9 @@ func (e *CheckTableExec) doCheckPartitionedTable(tbl table.PartitionedTable) err

func (e *CheckTableExec) doCheckTable(tbl table.Table) error {
for _, idx := range tbl.Indices() {
if idx.Meta().State != model.StatePublic {
continue
}
txn := e.ctx.Txn(true)
err := admin.CompareIndexData(e.ctx, txn, tbl, idx, e.genExprs)
if err != nil {
Expand Down

0 comments on commit 18b2a78

Please sign in to comment.