Skip to content

Commit

Permalink
admin: only check public index (#8748) (#8749)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored and winkyao committed Dec 20, 2018
1 parent eb67035 commit f0c0621
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 @@ -465,6 +465,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 f0c0621

Please sign in to comment.