函数lock_rec_find_similar_on_page
2015-11-06 15:01
176 查看
/*********************************************************************//** Looks for a suitable type record lock struct by the same trx on the same page. This can be used to save space when a new record lock should be set on a page: no new struct is needed, if a suitable old is found. @return lock or NULL */ UNIV_INLINE lock_t* lock_rec_find_similar_on_page( /*==========================*/ ulint type_mode, /*!< in: lock type_mode field */ ulint heap_no, /*!< in: heap number of the record */ lock_t* lock, /*!< in: lock_rec_get_first_on_page() */ const trx_t* trx) /*!< in: transaction */ { ut_ad(mutex_own(&kernel_mutex)); while (lock != NULL) { if (lock->trx == trx && lock->type_mode == type_mode && lock_rec_get_n_bits(lock) > heap_no) { return(lock); } lock = lock_rec_get_next_on_page(lock); } return(NULL); }
相关文章推荐
- Eclipse导入Tomcat源码
- Codeforces 593D - Happy Tree Party(树链剖分)
- [Android] ListView中getView的原理+如何在ListView中放置多个item
- MRC和ARC混编
- Java的动态绑定与静态绑定
- ReentrantLock(重入锁)以及公平性
- Android利用Fiddler进行网络数据抓包
- 文件读入多读一位
- cmake 安装 mysql5.5 版本
- Enum用法
- windows高级防火墙命令行操作
- java.io.IOException: Can't write xxx Can't read xxx
- 详解Java编程中if...else语句的嵌套写法
- 如何使用playframework连接MySQL数据库
- android:windowSoftInputMode属性详解
- 如何在Oracle中复制表结构和表数据 【转载】
- 五、实体分析
- reflect:打印对象属性内容---调试工具
- CSS重置
- 08.Curator缓存