-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
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
sqlstats: simplify transaction latency test #120419
sqlstats: simplify transaction latency test #120419
Conversation
5d29d14
to
2f48d18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @dhartunian and @xinhaoz)
pkg/sql/sqlstats/sslocal/sql_stats_test.go
line 772 at r1 (raw file):
q := tc.query p := tc.placeholders tc.Unlock()
nit: here and below, can we use anonymous functions so that we can defer
the unlocks?
Code quote:
tc.Unlock()
2f48d18
to
b874060
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @xinhaoz)
pkg/sql/sqlstats/sslocal/sql_stats_test.go
line 772 at r1 (raw file):
Previously, abarganier (Alex Barganier) wrote…
nit: here and below, can we use anonymous functions so that we can
defer
the unlocks?
done.
b874060
to
0d9771e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @xinhaoz)
TFTRs! bors r=abarganier,xinhaoz |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
bors r-
|
Canceled. |
Remove need for test case counter which causes a data race. Fixes: cockroachdb#119580 Epic: None Release note: None
0d9771e
to
b71b3ce
Compare
bors r=abarganier,xinhaoz |
Remove need for test case counter which causes a data race.
Fixes: #119580
Epic: None
Release note: None