br: fix bootstrap domain (#40307)

close pingcap/tidb#40281
This commit is contained in:
wjHuang
2023-01-04 19:36:20 +08:00
committed by GitHub
parent 6ae151a9bc
commit 00604eb19d

View File

@ -69,6 +69,10 @@ func (Glue) GetDomain(store kv.Storage) (*domain.Domain, error) {
if err != nil {
return nil, errors.Trace(err)
}
err = session.InitMDLVariable(store)
if err != nil {
return nil, err
}
// create stats handler for backup and restore.
err = dom.UpdateTableStatsLoop(se)
if err != nil {