Skip to content

Commit 98fb5a6

Browse files
committed
statistics: use infoschema api to get table info
Signed-off-by: Weizhen Wang <[email protected]>
1 parent 6e1e206 commit 98fb5a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/statistics/handle/util/table_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func NewTableInfoGetter() TableInfoGetter {
3737

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

0 commit comments

Comments
 (0)