Skip to content

make DumpStatsToJSON and LoadStatsFromJSON don't depend on handle #40624

@wjhuang2016

Description

@wjhuang2016

Enhancement

BR needs to use DumpStatsToJSON and LoadStatsFromJSON. But we don't want it to use handle, which introduces domain.

It's dangerous to use domain in BR, since a domain represents a tidb. But it's not a real tidb in BR, it may miss some bootstrap operations, and cause bugs.

So it's better to make DumpStatsToJSON and LoadStatsFromJSON as normal functions.

Metadata

Metadata

Labels

sig/plannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions