• Monty's avatar
    MDEV-23824 SIGSEGV in end_io_cache on REPAIR LOCAL TABLE for Aria table · a876121d
    Monty authored
    Bugs fixed:
    - prepare_for_repair() didn't close all open files if table opened failed
      because of out-of-memory
    - If dd_recreate_table() failed, the data file was not properly restored
      from it's temporary name
    - Aria repair initializing code didn't properly clear all used structs
      before calling error, which caused crashed in memory-free calls.
    - maria_delete_table() didn't register if table open failed. This could
      calls my_error() to be called without returning 1 to the caller, which
      cased failures in my_ok()
    
    Note when merging to 10.5:
    - Remove the #if MYSQL_VERSION from sql_admin.cc
    a876121d
ma_open.c 71.8 KB