Skip to content

Commit

Permalink
Fixed 'async_send_simple_command' not reporting server_status
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierJF committed Nov 29, 2020
1 parent 2a102e9 commit 86fed09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mysql_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2313,6 +2313,7 @@ int MySQL_Connection::async_send_simple_command(short event, char *stmt, unsigne
PROXY_TRACE();
assert(mysql);
assert(ret_mysql);
server_status=parent->status; // we copy it here to avoid race condition. The caller will see this
if (
(parent->status==MYSQL_SERVER_STATUS_OFFLINE_HARD) // the server is OFFLINE as specific by the user
||
Expand Down

0 comments on commit 86fed09

Please sign in to comment.