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

Issue 164960043: code review 164960043: go.tools/dashboard/app: update commit in transaction on... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 5 months ago by adg
Modified:
9 years, 5 months ago
Reviewers:
rsc, dvyukov
CC:
rsc, bradfitz, golang-codereviews
Visibility:
Public.

Description

go.tools/dashboard/app: update commit in transaction on perf regression The sendPerfFailMail function populated a dummy commit value and then calls commonNotify, which then updated and stored that dummy commit, hosing the original commit entity.

Patch Set 1 #

Patch Set 2 : diff -r 0f7abb09d8097a5e28a080d0bfa36e9b54537adc https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -12 lines) Patch
M dashboard/app/build/notify.go View 1 1 chunk +19 lines, -12 lines 0 comments Download

Messages

Total messages: 5
adg
Hello rsc, bradfitz, dvyukov (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
9 years, 5 months ago (2014-10-27 21:48:24 UTC) #1
rsc
LGTM
9 years, 5 months ago (2014-10-28 00:10:04 UTC) #2
adg
*** Submitted as https://code.google.com/p/go/source/detail?r=c542671bd340&repo=tools *** go.tools/dashboard/app: update commit in transaction on perf regression The sendPerfFailMail ...
9 years, 5 months ago (2014-10-28 00:25:09 UTC) #3
dvyukov
Aha! Here it is. LGTM That code runs in a transaction already. I guess nested ...
9 years, 5 months ago (2014-10-28 12:17:39 UTC) #4
adg
9 years, 5 months ago (2014-10-29 00:54:00 UTC) #5
Actually that's probably an error on my part. I'll send a fix removing the
transaction part.
The real fix here is fetching the commit before storing it.

On Tue Oct 28 2014 at 11:17:42 PM <dvyukov@google.com> wrote:

> Aha! Here it is.
> LGTM
>
> That code runs in a transaction already. I guess nested transactions
> just gets flattened.
>
> https://codereview.appspot.com/164960043/
>
Sign in to reply to this message.

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