Skip to content

Commit

Permalink
Merge pull request #5271 from dasl-/schema-time
Browse files Browse the repository at this point in the history
Fix invocation of deferred function for loading schema.
  • Loading branch information
sougou authored Oct 11, 2019
2 parents 06ae28d + a851d7b commit 23efa41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vttablet/tabletserver/schema/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (se *Engine) Open() error {
return nil
}
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()
dbaParams := se.dbconfigs.DbaWithDB()
se.conns.Open(dbaParams, dbaParams, dbaParams)
Expand Down

0 comments on commit 23efa41

Please sign in to comment.