Skip to content

Commit

Permalink
add forgotten async ctxt initialization on reconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Mar 25, 2017
1 parent 92871e8 commit c042c1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libmariadb/mariadb_lib.c
Expand Up @@ -1595,6 +1595,7 @@ my_bool STDCALL mariadb_reconnect(MYSQL *mysql)
tmp_mysql.options.my_cnf_group= tmp_mysql.options.my_cnf_file= NULL;
if (IS_MYSQL_ASYNC_ACTIVE(mysql))
{
ctxt= mysql->options.extension->async_context;
hook_data.orig_mysql= mysql;
hook_data.new_mysql= &tmp_mysql;
hook_data.orig_pvio= mysql->net.pvio;
Expand Down

0 comments on commit c042c1d

Please sign in to comment.