mariadb_cancel
You are viewing an old version of this article. View
the current version here.
Syntax
int mariadb_cancel(MYSQL * mysql);
mysql
- mysql_init() や mysql_real_connect()によってあらかじめ割り当てられたmysql handle
Description
後続のread/write操作を失敗させる事により、即座にコネクションを破棄する。 mariadb_cancel() はmysql structure用に使用されるメモリや通信チャネルを破棄しない。メモリを解放するためには、mysql_close() を呼び出す必要がある。 mariadb_cancel()はKILLが実行できない状況で長いクエリを破棄する際に有用である。
mariadb_cancel()はConnector/C 3.0で追加された。
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.