This is a read-only copy of the MariaDB Knowledgebase generated on 2024-04-30. For the latest, interactive version please visit https://mariadb.com/kb/.

mariadb_cancel

構文

int mariadb_cancel(MYSQL * mysql);

mysql - mysql handleのことで、mysql_init()mysql_real_connect()によってあらかじめ割り当てられます。

説明

後続のread/write操作を失敗させる事により、即座にコネクションを破棄します。 mariadb_cancel() はmysql structure用に使用されるメモリや通信チャネルを破棄しません。メモリを解放するためには、mysql_close() を呼び出す必要があります。 mariadb_cancel()はKILLが実行できない状況で長いクエリを破棄する際に有用です。

mariadb_cancel()はConnector/C 3.0で追加されました。

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.