Commit a8372ecf authored by unknown's avatar unknown

Add DBUG_ASSERT to check that mysql is not null when mysql_reconnect is called

Add DBUG_PRINT to show the value of mysql->reconnect
parent 6efe4250
...@@ -2215,6 +2215,8 @@ my_bool mysql_reconnect(MYSQL *mysql) ...@@ -2215,6 +2215,8 @@ my_bool mysql_reconnect(MYSQL *mysql)
{ {
MYSQL tmp_mysql; MYSQL tmp_mysql;
DBUG_ENTER("mysql_reconnect"); DBUG_ENTER("mysql_reconnect");
DBUG_ASSERT(mysql);
DBUG_PRINT("enter", ("mysql->reconnect: %d", mysql->reconnect));
if (!mysql->reconnect || if (!mysql->reconnect ||
(mysql->server_status & SERVER_STATUS_IN_TRANS) || !mysql->host_info) (mysql->server_status & SERVER_STATUS_IN_TRANS) || !mysql->host_info)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment