We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As the subject implies, RegisterDial is not safe to call from multiple goroutines.
RegisterDial
mysql/driver.go
Line 43 in 1a676ac
var wg sync.WaitGroup wg.Add(1) go func() { mysql.RegisterDial("dial1", func(string) (net.Conn, error) { return nil, errors.New("bork") }) wg.Done() }() go func() { mysql.RegisterDial("dial2", func(string) (net.Conn, error) { return nil, errors.New("bork") }) wg.Done() }() wg.Wait() sql.Open("mysql", /* ... */)
The text was updated successfully, but these errors were encountered:
Make RegisterDial safe to call from multiple goroutines.
0b2f41a
Fixes go-sql-driver#772
Make RegisterDial safe to call from multiple goroutines. (#773)
3287d94
Fixes #772
No branches or pull requests
Issue description
As the subject implies,
RegisterDial
is not safe to call from multiple goroutines.mysql/driver.go
Line 43 in 1a676ac
Example code
The text was updated successfully, but these errors were encountered: