br
br copied to clipboard
Don't change TiDB's global config when using API from TiDB
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