Skip to content

Commit

Permalink
statistics: use infoschema api to get table info
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Nov 21, 2024
1 parent 6e1e206 commit 98fb5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/statistics/handle/util/table_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewTableInfoGetter() TableInfoGetter {

// TableInfoByID returns the table info specified by the physicalID.
// If the physicalID is corresponding to a partition, return its parent table.
func (c *tableInfoGetterImpl) TableInfoByID(is infoschema.InfoSchema, physicalID int64) (table.Table, bool) {
func (*tableInfoGetterImpl) TableInfoByID(is infoschema.InfoSchema, physicalID int64) (table.Table, bool) {
tbl, _, _ := is.FindTableByPartitionID(physicalID)
return tbl, tbl == nil
}

0 comments on commit 98fb5a6

Please sign in to comment.