• Marko Mäkelä's avatar
    MDEV-17196 Crash during instant ADD COLUMN with long DEFAULT value · aba5c72b
    Marko Mäkelä authored
    A debug assertion would fail if an instant ADD COLUMN operation
    involves splitting the leftmost leaf page and storing a default
    value off-page. Another debug assertion could fail if the
    default value does not fit in an undo log page.
    
    btr_cur_pessimistic_update(): Invoke rec_offs_make_valid()
    in order to prevent rec_offs_validate() assertion failure.
    
    innobase_add_instant_try(): Invoke btr_cur_pessimistic_update()
    with the BTR_KEEP_POS_FLAG, which is the correct course of action
    when BLOBs may need to be written. Whenever returning true,
    ensure that my_error() will have been called.
    aba5c72b
handler0alter.cc 273 KB