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

Add support for COM_RESET_CONNECTION #5219

Merged
merged 3 commits into from
Sep 26, 2019
Merged

Conversation

saifalharthi
Copy link
Contributor

Signed-off-by: Saif Alharthi [email protected]

defer atomic.AddInt32(&busyConnections, -1)
}
_, _, err := vh.vtg.Execute(ctx, session, "rollback", make(map[string]*querypb.BindVariable))
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to log the error and return success. In fact, you can have this function not return an error at all.

@saifalharthi saifalharthi changed the title [WIP] Add support for COM_RESET_CONNECTION and COM_CHANGE_USER [WIP] Add support for COM_RESET_CONNECTION Sep 25, 2019
@deepthi
Copy link
Member

deepthi commented Sep 25, 2019

Can you rebase once the work is complete and fix the commit messages to describe what was done in each commit? The message on 683b772 is good, but the others are vague and don't tell you what is in the commit.

@saifalharthi saifalharthi changed the title [WIP] Add support for COM_RESET_CONNECTION Add support for COM_RESET_CONNECTION Sep 26, 2019
@saifalharthi saifalharthi marked this pull request as ready for review September 26, 2019 04:31
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