• Marko Mäkelä's avatar
    MDEV-21513: Avoid some crashes in ALTER TABLE...IMPORT TABLESPACE · 08b0b2b6
    Marko Mäkelä authored
    IndexPurge::next(): Replace btr_pcur_move_to_next_user_rec()
    with some equivalent code that performs sanity checks without
    killing the server. Perform some additional sanity checks as well.
    
    This change is motivated by
    mysql/mysql-server@48de4d74f4d2f10cd01b129753c7dfa908cf36b5
    which unnecessarily introduces storage overhead to btr_pcur_t
    and uses a test case that injects a fault somewhere else,
    not in the code path that was modified.
    08b0b2b6
row0import.cc 106 KB