Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3416)

Issue 7707047: code review 7707047: database/sql: allow simultaneous queries, etc in a Tx (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by bradfitz
Modified:
11 years, 1 month ago
Reviewers:
CC:
golang-dev, adg
Visibility:
Public.

Description

database/sql: allow simultaneous queries, etc in a Tx Now that revision 0c029965805f is in, it's easy to guarantee that we never access a driver.Conn concurrently, per the database/sql/driver contract, so we can remove this overlarge mutex. Fixes issue 3857

Patch Set 1 #

Patch Set 2 : diff -r 43eb97ed849a https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 43eb97ed849a https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r bcb5f45aa10e https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -21 lines) Patch
M src/pkg/database/sql/sql.go View 1 8 chunks +5 lines, -21 lines 0 comments Download
M src/pkg/database/sql/sql_test.go View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 5
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 1 month ago (2013-03-18 15:10:04 UTC) #1
adg
LGTM https://codereview.appspot.com/7707047/diff/4001/src/pkg/database/sql/sql_test.go File src/pkg/database/sql/sql_test.go (right): https://codereview.appspot.com/7707047/diff/4001/src/pkg/database/sql/sql_test.go#newcode741 src/pkg/database/sql/sql_test.go:741: func TestSimultaneousQueries(t *testing.T) { If this test fails, ...
11 years, 1 month ago (2013-03-18 18:30:39 UTC) #2
bradfitz
On Mon, Mar 18, 2013 at 11:30 AM, <adg@golang.org> wrote: > LGTM > > > ...
11 years, 1 month ago (2013-03-18 18:33:07 UTC) #3
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=c6f2bdbb0933 *** database/sql: allow simultaneous queries, etc in a Tx Now that ...
11 years, 1 month ago (2013-03-18 18:39:06 UTC) #4
adg
11 years, 1 month ago (2013-03-18 21:17:10 UTC) #5
On 19 March 2013 05:33, Brad Fitzpatrick <bradfitz@golang.org> wrote:

> well, crashes with deadlock.


Yep that's what I thought. SGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b