如何查询mysql所有的mutex_kernel_mutex--mysql5.5.18

在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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值