摘要: /************************************************************//** Gets the nth cell in a hash table. @return pointer to cell */ UNIV_INLINE hash_cell_t* hash_get_nth_cell( /*==============*/ ... 阅读全文
posted @ 2015-11-04 17:50 taek 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 调用 方法 这里好绕 对于下一个元素, 都习惯于使用struct 结构体名称 *next 阅读全文
posted @ 2015-11-04 17:14 taek 阅读(388) 评论(0) 推荐(0) 编辑
摘要: HASH_INSERT 详见 阅读全文
posted @ 2015-11-04 16:23 taek 阅读(166) 评论(0) 推荐(0) 编辑
摘要: typedef struct lock_struct lock_t; //利用typedef定义一个变量的类型 /** Lock struct */ struct lock_struct { trx_t* trx; /*!< transaction owning the lock */ UT_LIST_NODE_T(lock_t) trx... 阅读全文
posted @ 2015-11-04 15:51 taek 阅读(659) 评论(0) 推荐(0) 编辑
摘要: innodb引擎中的锁分两种 1)针对数据结构, 如链表 互斥锁 读写锁 http://mysqllover.com/?p=425 http://www.cnblogs.com/justfortaste/p/3668935.html 2)针对数据表中记录 行锁 表锁 innodb中的互斥锁是依据操作 阅读全文
posted @ 2015-11-04 12:50 taek 阅读(959) 评论(0) 推荐(0) 编辑