]> Cypherpunks repositories - gostls13.git/commit
database/sql: make Register safe for concurrent use
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 30 Jun 2015 00:56:20 +0000 (17:56 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 30 Jun 2015 23:15:03 +0000 (23:15 +0000)
commitfc2eee87edd1ffbe6afd3b742760d29ac3983d3b
treefba55af5fbe825b91b9d6d5b45cef2251c8a3787
parent300d9a21583e7cf0149a778a0611e76ff7c6680f
database/sql: make Register safe for concurrent use

Adding a mutex was easier than documenting it, and is consistent with
gob.

Fixes #9847

Change-Id: Ifa94c17e7c11643add81b35431ef840b794d78b1
Reviewed-on: https://go-review.googlesource.com/11682
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/database/sql/sql.go