10bet网址
MySQL内部手册


23.10.2实现external_lock()方法

(custom-engine.html # custom-engine-api-reference-external_lockexternal_lock ()方法在语句的开头或当锁表发表声明。

使用实例external_lock ()可以在sql / ha_innodb.cc文件,但大多数存储引擎可以简单地返回0的情况也是如此例子存储引擎:

int ha_example::external_lock(THD * THD, int lock_type) {DBUG_ENTER("ha_example::external_lock");DBUG_RETURN (0);}