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) (#52205)

close #50810
  • Loading branch information
ti-chi-bot authored Apr 16, 2024
1 parent 5104c60 commit e0b3cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/infoschema_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1864,11 +1864,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 e0b3cc5

Please sign in to comment.