Skip to content

mysql rollback transactions should not bump query counts#6226

Merged
sougou merged 2 commits intomasterfrom
mysql-reset-implicit-rollback-should-not-bump-query-counts
May 27, 2020
Merged

mysql rollback transactions should not bump query counts#6226
sougou merged 2 commits intomasterfrom
mysql-reset-implicit-rollback-should-not-bump-query-counts

Conversation

@demmer
Copy link
Copy Markdown
Member

@demmer demmer commented May 26, 2020

Description

Stop mysql protocol connection closing from artificially counting "rollback" queries.

Details

When executing implicit rollbacks upon mysql connection close, use an explicit CloseSession function in vtgate rather than executing a "rollback" statement, so as to not artificially inflate the query counts.

When executing implicit rollbacks upon mysql connection close, use an
explicit CloseSession function in vtgate rather than executing a "rollback"
statement, so as to not artificially inflate the query counts.

Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
@demmer demmer requested a review from sougou as a code owner May 26, 2020 15:12
Signed-off-by: Michael Demmer <mdemmer@slack-corp.com>
@sougou sougou merged commit 3159ec5 into master May 27, 2020
@sougou sougou deleted the mysql-reset-implicit-rollback-should-not-bump-query-counts branch June 7, 2020 18:03
@deepthi deepthi added this to the v7.0 milestone Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants