• Marko Mäkelä's avatar
    MDEV-13564 follow-up: Remove dead code · e3c39c0b
    Marko Mäkelä authored
    In MariaDB 10.4.0, commit 09af00cb
    removed the crash-upgrade logic for the MariaDB 10.2
    innodb_safe_truncate=OFF TRUNCATE TABLE (which was the only option
    between MariaDB 10.2.2 and 10.2.18), but failed to adjust some
    comments and code.
    
    buf_page_io_complete(): Remove a bogus comment about TRUNCATE.
    
    dict_recreate_index_tree(): Unused function; remove.
    
    fil_space_t::stop_new_ops: Clarify the comment.
    
    fil_space_acquire_low(): Remove a bogus comment about TRUNCATE.
    
    fil_check_pending_ops(), fil_check_pending_io(): Adjust a warning message.
    This code is only invoked as part of DISCARD TABLESPACE or DROP TABLE.
    DROP TABLE is internally used as part of ALTER TABLE, OPTIMIZE TABLE,
    or TRUNCATE TABLE.
    
    RemoteDatafile::create_link_file(): Clarify a comment.
    
    ibuf_delete_for_discarded_space(): Clarify the function comment.
    
    dict_table_x_lock_indexes(), dict_table_x_unlock_indexes():
    Merge with the only remaining caller, row_quiesce_set_state().
    
    page_create_zip(): Remove a bogus comment about TRUNCATE.
    e3c39c0b
fsp0file.cc 26.6 KB