• Marko Mäkelä's avatar
    Remove some fields from dict_table_t · 58f87a41
    Marko Mäkelä authored
    dict_table_t::thd: Remove. This was only used by btr_root_block_get()
    for reporting decryption failures, and it was only assigned by
    ha_innobase::open(), and never cleared. This could mean that if a
    connection is closed, the pointer would become stale, and the server
    could crash while trying to report the error. It could also mean
    that an error is being reported to the wrong client. It is better
    to use current_thd in this case, even though it could mean that if
    the code is invoked from an InnoDB background operation, there would
    be no connection to which to send the error message.
    
    Remove dict_table_t::crypt_data and dict_table_t::page_0_read.
    These fields were never read.
    
    fil_open_single_table_tablespace(): Remove the parameter "table".
    58f87a41
btr0btr.cc 149 KB