You've already forked mariadb-connector-c
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:
@@ -1633,6 +1633,8 @@ my_bool STDCALL mariadb_reconnect(MYSQL *mysql)
|
|||||||
tmp_mysql.stmts= mysql->stmts;
|
tmp_mysql.stmts= mysql->stmts;
|
||||||
mysql->stmts= NULL;
|
mysql->stmts= NULL;
|
||||||
|
|
||||||
|
if (ctxt)
|
||||||
|
my_context_install_suspend_resume_hook(ctxt, NULL, NULL);
|
||||||
/* Don't free options, we moved them to tmp_mysql */
|
/* Don't free options, we moved them to tmp_mysql */
|
||||||
memset(&mysql->options, 0, sizeof(mysql->options));
|
memset(&mysql->options, 0, sizeof(mysql->options));
|
||||||
mysql->free_me=0;
|
mysql->free_me=0;
|
||||||
|
Reference in New Issue
Block a user