AliSQL
AliSQL copied to clipboard
binlog错误的逻辑

empty如果为true,则断言m_first与first相同(都为NULL),但是后面接着用到了first->stage_cond_id
+1,即使断言没有生效(release版本),下面的代码仍然使用了m_first。不过正常使用并没有发现因为这个导致的mysql crash
对列为空的话,m_last 指向 m_first 的地址,*m_last = first 相当于 m_first = first. 两个值相等,但都不为 NULL