зеркало из https://github.com/github/vitess-gh.git
Merge pull request #5271 from dasl-/schema-time
Fix invocation of deferred function for loading schema.
This commit is contained in:
Коммит
23efa4145a
|
@ -113,7 +113,7 @@ func (se *Engine) Open() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
defer log.Infof("Time taken to load the schema: %v", time.Since(start))
|
defer func() { log.Infof("Time taken to load the schema: %v", time.Since(start)) }()
|
||||||
ctx := tabletenv.LocalContext()
|
ctx := tabletenv.LocalContext()
|
||||||
dbaParams := se.dbconfigs.DbaWithDB()
|
dbaParams := se.dbconfigs.DbaWithDB()
|
||||||
se.conns.Open(dbaParams, dbaParams, dbaParams)
|
se.conns.Open(dbaParams, dbaParams, dbaParams)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче