表示 进入内容 11
Displaying posts with tag: Halloween (reset)
MySQL Bug 65745分析

MySQL Bug 65745分析 BUG描述 MySQL 5.5.25,5.5.26版本,一个更新单行的操作,有可能存在死循环,一直持续更新,直至耗尽磁盘空间。详细的BUG描述及重新脚本,见下面的网址:http://bugs.mysql.com/bug.php?id=65745 接下来,本文将分步骤,详细分析此BUG的执行流程,以及产生此BUG的内在原因。 处理流程 – MySQL 5.5.25 判断出id1索引与primary key索引均以id1列开始,因此是一个 Rowid Ordered Retrieval (ROR) 2. ROR查询流程,首先根据查询条件(a is null and id1 = 2),构造一个查询的range minkey[2,null], maxkey[2,null] 函数处理流程:     opt_range.cc::get_quick_keys();         range = new QUICK_RANGE();         insert_dynamic(&quick->ranges, (uchar*)&range); 3. …

[获取更多]
表示 进入内容 11