11 2015 档案

摘要:buff_pool_t 结构体 详见 阅读全文
posted @ 2015-11-22 16:43 taek 阅读(523) 评论(0) 推荐(0) 编辑
摘要:/********************************************************************//** Creates the buffer pool. @return DB_SUCCESS if success, DB_ERROR if not enough memory or error */ UNIV_INTERN ulint buf_... 阅读全文
posted @ 2015-11-22 16:41 taek 阅读(476) 评论(0) 推荐(0) 编辑
摘要:gdb安装包 在CentOS6.4下使用gdb进行调试的时候, 使用bt(breaktrace)命令时,会弹出如下的提示: 头一天提示: Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.i686 问题没 阅读全文
posted @ 2015-11-22 14:23 taek 阅读(1140) 评论(0) 推荐(0) 编辑
摘要:一.修改php-fpm.conf文件 /usr/local/php/etc/php-fpm.conf pm.max_children = 1 #只产生一个进程,便于追踪 二.得到进行服务的进程号 [root@default-tpl etc]# ps aux|grep php-fpmroot 1521 阅读全文
posted @ 2015-11-21 18:07 taek 阅读(660) 评论(0) 推荐(0) 编辑
摘要:查看pid位置 cat /etc/php-fpm.confpid = /usr/local/php/var/run/php-fpm.pid #测试php-fpm配置/usr/local/php/sbin/php-fpm -t/usr/local/php/sbin/php-fpm -c /usr/lo 阅读全文
posted @ 2015-11-21 15:56 taek 阅读(183) 评论(0) 推荐(0) 编辑
摘要:http://jenkins.xiaojukeji.com 阅读全文
posted @ 2015-11-12 19:07 taek 阅读(285) 评论(0) 推荐(0) 编辑
摘要:/****************************************************************//** Searches the right position for a page cursor. */ UNIV_INTERN void page_cur_search_with_match( /*=======================*/ ... 阅读全文
posted @ 2015-11-10 17:03 taek 阅读(768) 评论(0) 推荐(0) 编辑
摘要:Linux 提出了 Multi-Processing 的概念,它的调度器可以将操作系统的线程均分到各个核(或硬件线程)上去执行,以此达到并行计算的目的,从而也可以极大地提高系统的性能。 实现计数器 1)自旋锁 spinlock不会导致线程的状态切换(用户态->内核态), 1, spinlock介绍 阅读全文
posted @ 2015-11-09 13:56 taek 阅读(1475) 评论(0) 推荐(0) 编辑
摘要:lock 分配内存 lock = mem_heap_alloc(trx->lock_heap, sizeof(lock_t) + n_bytes); 内存分配图 上面分配的内存是连续的,不会造成碎片 lock[0] 为 0xxx3 lock[1] 为 0xxx15 或 lock+sizeof(loc 阅读全文
posted @ 2015-11-06 15:13 taek 阅读(399) 评论(0) 推荐(0) 编辑
摘要:/*********************************************************************//** 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 r... 阅读全文
posted @ 2015-11-06 15:01 taek 阅读(230) 评论(0) 推荐(0) 编辑
摘要:row代表lock HashTable的权限 column代表预加锁的权限 ulint lock_mode_stronger_or_eq( /* */ enum lock_mode mode1, /*!< in: lock mode */ //找到的lock本身锁的模式 enum lock_mode 阅读全文
posted @ 2015-11-06 12:21 taek 阅读(293) 评论(0) 推荐(0) 编辑
摘要:/*********************************************************************//** Creates a new record lock and inserts it to the lock queue. Does NOT check for deadlocks or lock compatibility! @return ... 阅读全文
posted @ 2015-11-05 18:33 taek 阅读(590) 评论(0) 推荐(0) 编辑
摘要:/*********************************************************************//**Gets the number of bits in a record lock bitmap.@return number of bits */... 阅读全文
posted @ 2015-11-05 17:19 taek 阅读(268) 评论(0) 推荐(0) 编辑
摘要:检查锁与锁之间的兼容性 路径:/mysql-5.5.43/storage/innobase/lock/lock0lock.c 实现:见锁的强度比较 row 可理解为 lock 的锁模式 column 可理解为 预加锁的模式 反过来也行 速记:只要包括X字符,跟谁都不兼容 阅读全文
posted @ 2015-11-05 11:25 taek 阅读(723) 评论(0) 推荐(0) 编辑
摘要:/************************************************************//** 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 阅读(230) 评论(0) 推荐(0) 编辑
摘要:调用 方法 这里好绕 对于下一个元素, 都习惯于使用struct 结构体名称 *next 阅读全文
posted @ 2015-11-04 17:14 taek 阅读(394) 评论(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 阅读(667) 评论(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 阅读(1000) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示