mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 07:15:33 +02:00
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
This commit is contained in:
parent
d6d4692372
commit
6cbc74a706
1 changed files with 2 additions and 0 deletions
|
|
@ -2215,6 +2215,8 @@ my_bool mysql_reconnect(MYSQL *mysql)
|
|||
{
|
||||
MYSQL tmp_mysql;
|
||||
DBUG_ENTER("mysql_reconnect");
|
||||
DBUG_ASSERT(mysql);
|
||||
DBUG_PRINT("enter", ("mysql->reconnect: %d", mysql->reconnect));
|
||||
|
||||
if (!mysql->reconnect ||
|
||||
(mysql->server_status & SERVER_STATUS_IN_TRANS) || !mysql->host_info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue