AliSQL icon indicating copy to clipboard operation
AliSQL copied to clipboard

binlog错误的逻辑

Open kfpandahyy opened this issue 6 years ago • 2 comments

image

empty如果为true,则断言m_first与first相同(都为NULL),但是后面接着用到了first->stage_cond_id

kfpandahyy avatar Apr 17 '19 08:04 kfpandahyy

+1,即使断言没有生效(release版本),下面的代码仍然使用了m_first。不过正常使用并没有发现因为这个导致的mysql crash

hipudding avatar Apr 17 '19 09:04 hipudding

对列为空的话,m_last 指向 m_first 的地址,*m_last = first 相当于 m_first = first. 两个值相等,但都不为 NULL

zhangxiaojian avatar Apr 17 '19 09:04 zhangxiaojian