1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

remove ctx hooks after the successful reconnect

this fixes main.mysql_client_test_nonblock failures
in optimized builds
This commit is contained in:
Sergei Golubchik
2017-03-31 14:30:04 +02:00
parent e9868bfce0
commit be34e12ba0

View File

@@ -1633,6 +1633,8 @@ my_bool STDCALL mariadb_reconnect(MYSQL *mysql)
tmp_mysql.stmts= mysql->stmts;
mysql->stmts= NULL;
if (ctxt)
my_context_install_suspend_resume_hook(ctxt, NULL, NULL);
/* Don't free options, we moved them to tmp_mysql */
memset(&mysql->options, 0, sizeof(mysql->options));
mysql->free_me=0;