Public Member Functions | |
UT_LIST_BASE_NODE_T (fil_node_t) chain | |
UT_LIST_NODE_T (fil_space_t) unflushed_spaces | |
UT_LIST_NODE_T (fil_space_t) space_list | |
Public Attributes | |
char * | name |
ulint | id |
ib_int64_t | tablespace_version |
ibool | mark |
ibool | stop_ios |
ibool | stop_ibuf_merges |
ibool | is_being_deleted |
ulint | purpose |
ulint | size |
ulint | flags |
ulint | n_reserved_extents |
ulint | n_pending_flushes |
ulint | n_pending_ibuf_merges |
hash_node_t | hash |
hash_node_t | name_hash |
rw_lock_t | latch |
ibool | is_in_unflushed_spaces |
ulint | magic_n |
Tablespace or log data space: let us call them by a common name space
Definition at line 170 of file fil0fil.cc.
base node for the file chain
list of spaces with at least one unflushed file we have written to
list of all spaces
ulint fil_space_struct::flags |
compressed page size and file format, or 0
Definition at line 206 of file fil0fil.cc.
Referenced by fil_extend_space_to_desired_size(), fil_space_create(), fil_space_get_flags(), and fil_space_get_latch().
hash_node_t fil_space_struct::hash |
hash chain node
Definition at line 219 of file fil0fil.cc.
ulint fil_space_struct::id |
space id
Definition at line 173 of file fil0fil.cc.
Referenced by fil_close_all_files(), fil_flush_file_spaces(), fil_io(), fil_open_log_and_system_tablespace_files(), fil_space_create(), fil_space_for_table_exists_in_mem(), fil_validate(), and fil_write_flushed_lsn_to_data_files().
this is set to TRUE when we start deleting a single-table tablespace and its file; when this flag is set no further i/o or flush requests can be placed on this space, though there may be such requests still being processed on this space
Definition at line 192 of file fil0fil.cc.
Referenced by fil_delete_tablespace(), fil_flush(), fil_flush_file_spaces(), fil_space_create(), fil_tablespace_deleted_or_being_deleted_in_mem(), and fil_tablespace_is_being_deleted().
TRUE if this space is currently in unflushed_spaces
Definition at line 228 of file fil0fil.cc.
Referenced by fil_flush(), and fil_space_create().
latch protecting the file space storage allocation
Definition at line 222 of file fil0fil.cc.
Referenced by fil_delete_tablespace(), fil_space_create(), and fil_space_get_latch().
ibool fil_space_struct::mark |
this is set to TRUE at database startup if the space corresponds to a table in the InnoDB data dictionary; so we can print a warning of orphaned tablespaces
Definition at line 180 of file fil0fil.cc.
Referenced by fil_space_create(), and fil_space_for_table_exists_in_mem().
this is positive when flushing the tablespace to disk; dropping of the tablespace is forbidden if this is positive
Definition at line 210 of file fil0fil.cc.
Referenced by fil_delete_tablespace(), fil_flush(), and fil_space_create().
this is positive when merging insert buffer entries to a page so that we may need to access the ibuf bitmap page in the tablespade: dropping of the tablespace is forbidden if this is positive
Definition at line 213 of file fil0fil.cc.
Referenced by fil_decr_pending_ibuf_merges(), fil_delete_tablespace(), fil_inc_pending_ibuf_merges(), and fil_space_create().
number of reserved free extents for ongoing operations like B-tree page split
Definition at line 208 of file fil0fil.cc.
Referenced by fil_space_create(), fil_space_get_n_reserved_extents(), fil_space_release_free_extents(), and fil_space_reserve_free_extents().
char* fil_space_struct::name |
space name = the path to the first file in it
Definition at line 171 of file fil0fil.cc.
Referenced by fil_delete_tablespace(), fil_io(), fil_rename_tablespace(), fil_space_create(), and fil_space_for_table_exists_in_mem().
hash_node_t fil_space_struct::name_hash |
hash chain the name_hash table
Definition at line 220 of file fil0fil.cc.
FIL_TABLESPACE, FIL_LOG, or FIL_ARCH_LOG
Definition at line 198 of file fil0fil.cc.
Referenced by fil_aio_wait(), fil_flush(), fil_flush_file_spaces(), fil_io(), fil_open_log_and_system_tablespace_files(), fil_space_create(), fil_space_get_flags(), fil_space_get_size(), fil_space_get_type(), fil_validate(), and fil_write_flushed_lsn_to_data_files().
ulint fil_space_struct::size |
space size in pages; 0 if a single-table tablespace whose size we do not know yet; last incomplete megabytes in data files may be ignored if space == 0
Definition at line 202 of file fil0fil.cc.
Referenced by fil_extend_space_to_desired_size(), fil_node_create(), fil_space_create(), fil_space_get_flags(), and fil_space_get_size().
we set this TRUE when we start deleting a single-table tablespace
Definition at line 189 of file fil0fil.cc.
Referenced by fil_delete_tablespace(), fil_inc_pending_ibuf_merges(), and fil_space_create().
TRUE if we want to rename the .ibd file of tablespace and want to stop temporarily posting of new i/o requests on the file
Definition at line 184 of file fil0fil.cc.
Referenced by fil_rename_tablespace(), and fil_space_create().
ib_int64_t fil_space_struct::tablespace_version |
in DISCARD/IMPORT this timestamp is used to check if we should ignore an insert buffer merge request for a page because it actually was for the previous incarnation of the space
Definition at line 175 of file fil0fil.cc.
Referenced by fil_space_create(), fil_space_get_version(), and fil_tablespace_deleted_or_being_deleted_in_mem().