From 632e4577f072eaa97ef267fc129a77c5b862850d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Sun, 29 Nov 2020 18:25:59 +0100 Subject: [PATCH] Fixed 'async_send_simple_command' not reporting server_status --- lib/mysql_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mysql_connection.cpp b/lib/mysql_connection.cpp index b6ec2091b..7046ccec5 100644 --- a/lib/mysql_connection.cpp +++ b/lib/mysql_connection.cpp @@ -2197,6 +2197,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 ||