The server has only one way to know that an engine participates in the statement and a transaction has been started in an engine: the engine says so. So, in order to be a part of a transaction, an engine must “register” itself. This is done by invoking the trans_register_ha() server call. Normally the engine registers itself whenever handler::external_lock() is called. Although trans_register_ha() can be invoked many times, it does nothing if the engine is already registered. If autocommit is not set, the engine must register itself twice – both in the statement list and in the normal transaction list. A parameter of trans_register_ha() specifies which list to register.
mysql中事务实现
原创aoerqilengbai 博主文章分类:MYSQL ©著作权
©著作权归作者所有:来自51CTO博客作者aoerqilengbai的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:mysql中的group by
下一篇:mysql中的预读
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
MySQL定时任务实现自动化
MySQL定时任务实现自动化
MySQL 自动化 -
Java Win查看cpu高原因
今天断断续续的收到管理平台的异常报警,cpu占用过高和jvm old占用过高,这个时候赶紧去排查原因,下面记录了我的排查过程,可能里面还有不正确的地方,欢迎各位大佬指正,也欢迎大家关于类似的案例一起交流,下面就看我关于这次排查的过程把 报警cpu使用率过高报警,接近100%后续又来了jvm old过高报警 排查过程首先打开监控平台看报警节点的cpu使用情况 2.&nb
Java Win查看cpu高原因 cpu占用过高 jvm old占用过高 cpu 100& 老年代占用100% -
jsp 里写java函数
37 EL表达
jsp 里写java函数 Java JSP 对象 数组