drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
fil_system_struct Struct Reference
Collaboration diagram for fil_system_struct:
[legend]

Public Member Functions

 UT_LIST_BASE_NODE_T (fil_node_t) LRU
 UT_LIST_BASE_NODE_T (fil_space_t) unflushed_spaces
 UT_LIST_BASE_NODE_T (fil_space_t) space_list
 UT_LIST_BASE_NODE_T (fil_node_t) LRU
 UT_LIST_BASE_NODE_T (fil_space_t) unflushed_spaces
 UT_LIST_BASE_NODE_T (fil_space_t) space_list

Public Attributes

mutex_t mutex
hash_table_t * spaces
hash_table_t * name_hash
ulint n_open
ulint max_n_open
ib_int64_t modification_counter
ulint max_assigned_id
ib_int64_t tablespace_version
ibool space_id_reuse_warned

Detailed Description

The tablespace memory cache; also the totality of logs (the log data space) is stored here; below we talk about tablespaces, but also the ib_logfiles form a 'space' and it is handled here

Definition at line 245 of file fil0fil.cc.

Member Function Documentation

◆ UT_LIST_BASE_NODE_T() [1/6]

fil_system_struct::UT_LIST_BASE_NODE_T ( fil_node_t )

base node for the LRU list of the most recently used open files with no pending i/o's; if we start an i/o on the file, we first remove it from this list, and return it to the start of the list when the i/o ends; log files and the system tablespace are not put to this list: they are opened after the startup, and kept open until shutdown

◆ UT_LIST_BASE_NODE_T() [2/6]

fil_system_struct::UT_LIST_BASE_NODE_T ( fil_node_t )

base node for the LRU list of the most recently used open files with no pending i/o's; if we start an i/o on the file, we first remove it from this list, and return it to the start of the list when the i/o ends; log files and the system tablespace are not put to this list: they are opened after the startup, and kept open until shutdown

◆ UT_LIST_BASE_NODE_T() [3/6]

fil_system_struct::UT_LIST_BASE_NODE_T ( fil_space_t )

list of all file spaces

◆ UT_LIST_BASE_NODE_T() [4/6]

fil_system_struct::UT_LIST_BASE_NODE_T ( fil_space_t )

list of all file spaces

◆ UT_LIST_BASE_NODE_T() [5/6]

fil_system_struct::UT_LIST_BASE_NODE_T ( fil_space_t )

base node for the list of those tablespaces whose files contain unflushed writes; those spaces have at least one file node where modification_counter > flush_counter

◆ UT_LIST_BASE_NODE_T() [6/6]

fil_system_struct::UT_LIST_BASE_NODE_T ( fil_space_t )

base node for the list of those tablespaces whose files contain unflushed writes; those spaces have at least one file node where modification_counter > flush_counter

Member Data Documentation

◆ max_assigned_id

ulint fil_system_struct::max_assigned_id

maximum space id in the existing tables, or assigned during the time mysqld has been up; at an InnoDB startup we scan the data dictionary and set here the maximum of the space id's of the tables there

Definition at line 276 of file fil0fil.cc.

◆ max_n_open

ulint fil_system_struct::max_n_open

n_open is not allowed to exceed this

Definition at line 272 of file fil0fil.cc.

◆ modification_counter

ib_int64_t fil_system_struct::modification_counter

when we write to a file we increment this by one

Definition at line 274 of file fil0fil.cc.

◆ mutex

mutex_t fil_system_struct::mutex

The mutex protecting the cache

Definition at line 247 of file fil0fil.cc.

◆ n_open

ulint fil_system_struct::n_open

number of files currently open

Definition at line 271 of file fil0fil.cc.

◆ name_hash

hash_table_t * fil_system_struct::name_hash

hash table based on the space name

Definition at line 252 of file fil0fil.cc.

◆ space_id_reuse_warned

ibool fil_system_struct::space_id_reuse_warned

Definition at line 292 of file fil0fil.cc.

◆ spaces

hash_table_t * fil_system_struct::spaces

The hash table of spaces in the system; they are hashed on the space id

Definition at line 249 of file fil0fil.cc.

◆ tablespace_version

ib_int64_t fil_system_struct::tablespace_version

a counter which is incremented for every space object memory creation; every space mem object gets a 'timestamp' from this; in DISCARD/ IMPORT this is used to check if we should ignore an insert buffer merge request

Definition at line 282 of file fil0fil.cc.


The documentation for this struct was generated from the following files: