File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ func (g Glue) startDomainAsNeeded(store kv.Storage) error {
115115 if err != nil {
116116 return err
117117 }
118- return dom .Start (ddl .Normal )
118+ return dom .Start (ddl .BR )
119119}
120120
121121func (g Glue ) createTypesSession (store kv.Storage ) (sessionapi.Session , error ) {
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ const (
109109 // the DDL owner, to make sure all upgrade related DDLs are run on new version
110110 // TiDB instance.
111111 Upgrade StartMode = "upgrade"
112+ // BR mode, Start DDL from br, with this mode can skip loadSystemStore in next-gen and initLogBackup.
113+ BR StartMode = "br"
112114)
113115
114116// OnExist specifies what to do when a new object has a name collision.
Original file line number Diff line number Diff line change @@ -827,9 +827,11 @@ func (do *Domain) Start(startMode ddl.StartMode) error {
827827 }, "closestReplicaReadCheckLoop" )
828828 }
829829
830- err = do .initLogBackup (do .ctx , pdCli )
831- if err != nil {
832- return err
830+ if startMode != ddl .BR {
831+ err = do .initLogBackup (do .ctx , pdCli )
832+ if err != nil {
833+ return err
834+ }
833835 }
834836
835837 // right now we only allow access system keyspace info schema after fully bootstrap.
You can’t perform that action at this time.
0 commit comments