• Michael Widenius's avatar
    Rename of stat table tried to rename open table. · daf333ab
    Michael Widenius authored
    When compiling with -DEXTRA_DEBUG and run main.stat_tables_missing
    on go the warning:
    Warning:  Table: ./mysql/column_stats is open on rename old_table
    
    This happened because rename_table_in_stat_tables() re-open the
    table that was to be renamed.
    Fixed by moving update of stat tables after all renames has been made.
    daf333ab
sql_table.cc 372 KB