Skip to content

Commit

Permalink
infoschema: don't display tables in MemDB when query `TIDB_HOT_REGION…
Browse files Browse the repository at this point in the history
…S` (#52180) (#52206)

close #50810
  • Loading branch information
ti-chi-bot authored May 20, 2024
1 parent 7a97c51 commit dc53482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/executor/infoschema_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1741,11 +1741,11 @@ func (e *memtableRetriever) setDataForTiDBHotRegions(ctx sessionctx.Context) err
if !ok {
return errors.New("Information about hot region can be gotten only when the storage is TiKV")
}
allSchemas := ctx.GetInfoSchema().(infoschema.InfoSchema).AllSchemas()
tikvHelper := &helper.Helper{
Store: tikvStore,
RegionCache: tikvStore.GetRegionCache(),
}
allSchemas := tikvHelper.FilterMemDBs(ctx.GetInfoSchema().(infoschema.InfoSchema).AllSchemas())
metrics, err := tikvHelper.ScrapeHotInfo(pdapi.HotRead, allSchemas)
if err != nil {
return err
Expand Down

0 comments on commit dc53482

Please sign in to comment.