br icon indicating copy to clipboard operation
br copied to clipboard

Don't change TiDB's global config when using API from TiDB

Open lance6716 opened this issue 4 years ago • 0 comments

Feature Request

Describe your feature request related problem:

Some API from TiDB only read configurations from global config, so if we want to use these API, the only way is setting a configuation to global config and call it. That will change the global config unexpectedly after tools (prepare for lightning) are integrated into TiDB kernel.

Describe the feature you'd like:

use new functions like https://github.com/pingcap/tidb/pull/22170, and finally remove all StoreGlobalConfig calls

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

lance6716 avatar Feb 07 '21 08:02 lance6716