Skip to content
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

mysql rollback transactions should not bump query counts #6226

Merged

Conversation

demmer
Copy link
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