Skip to content

Commit

Permalink
need init MDL variable when GetDomain()
Browse files Browse the repository at this point in the history
Signed-off-by: joccau <zak.zhao@pingcap.com>
  • Loading branch information
joccau committed Jan 11, 2023
1 parent f7c87c8 commit a5a4879
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions br/pkg/gluetidb/glue.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func (g Glue) UseOneShotSession(store kv.Storage, closeDomain bool, fn func(glue
if err != nil {
return errors.Trace(err)
}
if err = session.InitMDLVariable(store); err != nil {
return errors.Trace(err)
}

// because domain was created during the whole program exists.
// and it will register br info to info syncer.
// we'd better close it as soon as possible.
Expand Down

0 comments on commit a5a4879

Please sign in to comment.