Skip to content

Commit

Permalink
Reset connection metadata after CHANGE_USER #1069
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Jun 25, 2017
1 parent 08bc9f6 commit 39c4920
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/MySQL_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,7 @@ bool MySQL_Session::handler_again___status_CHANGING_USER_SERVER(int *_rc) {
int rc=myconn->async_change_user(myds->revents);
if (rc==0) {
myds->myconn->userinfo->set(client_myds->myconn->userinfo);
myds->myconn->reset();
st=previous_status.top();
previous_status.pop();
NEXT_IMMEDIATE_NEW(st);
Expand Down

0 comments on commit 39c4920

Please sign in to comment.