Skip to content

Commit

Permalink
planner/core: skip clustered index during admin check table (#22871)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta authored Feb 26, 2021
1 parent 03109ad commit d8c5ca3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions planner/core/planbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,10 @@ func (b *PlanBuilder) buildPhysicalIndexLookUpReaders(ctx context.Context, dbNam

for _, idx := range indices {
idxInfo := idx.Meta()
if tblInfo.IsCommonHandle && idxInfo.Primary {
// Skip checking clustered index.
continue
}
if idxInfo.State != model.StatePublic {
logutil.Logger(ctx).Info("build physical index lookup reader, the index isn't public",
zap.String("index", idxInfo.Name.O),
Expand Down

0 comments on commit d8c5ca3

Please sign in to comment.