• monty@mysql.com's avatar
    First stage of table definition cache · d35140a8
    monty@mysql.com authored
    Split TABLE to TABLE and TABLE_SHARE (TABLE_SHARE is still allocated as part of table, will be fixed soon)
    Created Field::make_field() and made Field_num::make_field() to call this
    Added 'TABLE_SHARE->db' that points to database name; Changed all usage of table_cache_key as database name to use this instead
    Changed field->table_name to point to pointer to alias. This allows us to change alias for a table by just updating one pointer.
    Renamed TABLE_SHARE->real_name to table_name
    Renamed TABLE->table_name to alias
    Renamed TABLE_LIST->real_name to table_name
    d35140a8
ha_innodb.cc 178 KB