Skip to content

Commit

Permalink
Merge #30623
Browse files Browse the repository at this point in the history
30623: sql: unskip TestSplitAt r=nvanbenschoten a=tschottdorf

The failure was fixed in #29324.

Closes #29169.

Release note: None

Co-authored-by: Tobias Schottdorf <[email protected]>
  • Loading branch information
craig[bot] and tbg committed Sep 25, 2018
2 parents f06556d + 85d5ab6 commit 15e4c8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/sql/split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import (
func TestSplitAt(t *testing.T) {
defer leaktest.AfterTest(t)()

t.Skip("TODO(benesch): #29169: will be fixed by #29324")

params, _ := tests.CreateTestServerParams()
s, db, _ := serverutils.StartServer(t, params)
defer s.Stopper().Stop(context.TODO())
Expand Down
7 changes: 7 additions & 0 deletions pkg/storage/intent_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,13 @@ func (cq *contentionQueue) add(
// contended key (i.e. newWIErr != nil).
contended.setLastTxnMeta(nil)
}
if newIntentTxn != nil {
// Shallow copy the TxnMeta. After this request returns (i.e. now), we might
// mutate it (DistSender and such), but the receiver of the channel will read
// it.
newIntentTxnCopy := *newIntentTxn
newIntentTxn = &newIntentTxnCopy
}
curPusher.waitCh <- newIntentTxn
close(curPusher.waitCh)
cq.mu.Unlock()
Expand Down

0 comments on commit 15e4c8d

Please sign in to comment.