Skip to content

Commit

Permalink
whoops; mutex was already there
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Feb 1, 2021
1 parent c6f758d commit 54428fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions go/vt/vttablet/tabletmanager/vreplication/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ func (vre *Engine) InitDBConfig(dbcfgs *dbconfigs.DBConfigs) {
vre.dbName = dbcfgs.DBName

// Ensure the schema is created as early as possible
go func() {
vre.mu.Lock()
defer vre.mu.Unlock()
vre.Exec(warmUpQuery)
}()
go vre.Exec(warmUpQuery)
}

// NewTestEngine creates a new Engine for testing.
Expand Down

0 comments on commit 54428fe

Please sign in to comment.