kernel_mutex--mysql5.5.18
来源:互联网 发布:黑马程序员教程百度云 编辑:程序博客网 时间:2024/06/02 21:37
在mysql innodb中,随处可见的kernel_mutex。全局锁,事务开始的一段代码段 /trx/trx0trx.c 中 trx_start()函数
/****************************************************************//**
Starts a new transaction.
@return TRUE */
UNIV_INTERN
ibool
trx_start(
/*======*/
trx_t* trx, /*!< in: transaction */
ulint rseg_id)/*!< in: rollback segment id; if ULINT_UNDEFINED
is passed, the system chooses the rollback segment
automatically in a round-robin fashion */
{
ibool ret;
/* Update the info whether we should skip XA steps that eat CPU time
For the duration of the transaction trx->support_xa is not reread
from thd so any changes in the value take effect in the next
transaction. This is to avoid a scenario where some undo
generated by a transaction, has XA stuff, and other undo,
generated by the same transaction, doesn't. */
trx->support_xa = thd_supports_xa(trx->mysql_thd);
mutex_enter(&kernel_mutex);
ret = trx_start_low(trx, rseg_id);
mutex_exit(&kernel_mutex);
return(ret);
}
http://blog.csdn.net/zhaiwx1987/article/details/7108610
- kernel_mutex--mysql5.5.18
- mysql5.6对kernel_mutex的优化
- MySQL5
- MYSQL5
- mysql5
- MySQL5
- Mysql5.5&Mysql5.6&Mysql5.7特性
- Mysql5.5&Mysql5.6&Mysql5.7特性
- RHEL6.1下从源码安装Mysql5.5.18
- windows 7下mysql5.5.18主从同步设置
- windows 7下mysql5.5.18主从同步设置
- php5 mysql5
- Mysql5.5
- mysql5安装
- mysql5 乱码
- MySQL5安装
- MySQL5安装
- mysql5.5
- Play Framework template engine模板引擎&模板隐含变量
- Intellij Idea识别Java Web项目
- play读取配置文件的方法
- 建造者模式
- 蓝桥杯-回文数
- kernel_mutex--mysql5.5.18
- 解决IDEA导入Myclipse项目的时候没有识别为Web项目的问题
- Ueditor使用方法,手把手教你
- android之MVP
- elk - kibana 显示red
- ueditor在chrome浏览器中,图片上传的弹框有很大的延迟,其他浏览器都正常
- HTML5和CSS3
- 如何在 Oracle Solaris 11 中配置网络
- Play framework Controllers控制器、action链式调用、返回的HTTP状态码