From f0c062137a2d6fc4d13b9f3fbae602db858ac220 Mon Sep 17 00:00:00 2001 From: crazycs Date: Thu, 20 Dec 2018 16:10:02 +0800 Subject: [PATCH] admin: only check public index (#8748) (#8749) --- executor/executor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/executor/executor.go b/executor/executor.go index 1a830e07fb699..6d1ec92dcc876 100644 --- a/executor/executor.go +++ b/executor/executor.go @@ -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 {