• Marko Mäkelä's avatar
    MDEV-21983: Crash on DROP/RENAME TABLE after DISCARD TABLESPACE · 6960e9ed
    Marko Mäkelä authored
    fil_delete_tablespace(): Remove the unused parameter drop_ahi,
    and add the parameter if_exists=false. We want to suppress
    error messages if we know that the tablespace has been discarded.
    
    dict_table_rename_in_cache(): Pass the new parameter to
    fil_delete_tablespace(), that is, do not complain about
    missing tablespace if the tablespace has been discarded.
    
    row_make_new_pathname(): Declare as static.
    
    row_drop_table_for_mysql(): Tolerate !table->data_dir_path
    when the tablespace has been discarded.
    
    row_rename_table_for_mysql(): Skip part of the RENAME TABLE
    when fil_space_get_first_path() returns NULL.
    6960e9ed
fil0fil.h 50.8 KB