1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-05 15:55:58 +03:00

CONC-184 : provide a function to cancel a current connection

(without invalidating MYSQL struct, without sending KILL)
This apparently is useful for replication handling in the server
This commit is contained in:
Vladislav Vaintroub
2016-05-21 12:35:06 +00:00
parent 07877e61cf
commit 437b9cd1e4
6 changed files with 61 additions and 4 deletions

View File

@@ -570,6 +570,7 @@ my_socket STDCALL mysql_get_socket(MYSQL *mysql);
unsigned int STDCALL mysql_get_timeout_value(const MYSQL *mysql);
unsigned int STDCALL mysql_get_timeout_value_ms(const MYSQL *mysql);
my_bool STDCALL mariadb_reconnect(MYSQL *mysql);
int STDCALL mariadb_cancel(MYSQL *mysql);
/* Async API */
int STDCALL mysql_close_start(MYSQL *sock);