• Monty's avatar
    MDEV-18187 Aria engine: Redo phase failed with "error 192 when executing... · 3691cc15
    Monty authored
    MDEV-18187 Aria engine: Redo phase failed with "error 192 when executing record redo_index_new_page" upon startup on a restored datadir
    
    The issue is that when recovery is about to create a new data or index
    page it check if the page already exits.
    If the page does not exists (file is too short) or contains wrong checksum,
    then the recovery code will recreate the page.
    The bug was that the code that checked if the page existed didn't take
    into account encrypted pages.
    
    Fixed by adding a check if page could not be encrypted solved the issue.
    I also added some code to silence decryption errors for new pages.
    
    Test case and some inspiration for how to solve this come from
    the pull request by alexandr.miloslavsky
    3691cc15
ma_blockrec.c 249 KB