Run mysqlmd commands in one step (without separate create/run/free).

This commit is contained in:
Dmitry Stogov 2017-11-14 17:32:41 +03:00
parent 3077a14aea
commit 4d5330fbe1
10 changed files with 297 additions and 453 deletions

View file

@ -186,11 +186,7 @@ mysqlnd_switch_to_ssl_if_needed(MYSQLND_CONN_DATA * conn,
{
size_t client_capabilities = mysql_flags;
struct st_mysqlnd_protocol_command * command = conn->command_factory(COM_ENABLE_SSL, conn, client_capabilities, server_capabilities, charset_no);
if (command) {
ret = command->run(command);
command->free_command(command);
}
ret = conn->run_command(COM_ENABLE_SSL, conn, client_capabilities, server_capabilities, charset_no);
}
DBG_RETURN(ret);
}