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

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
 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

Detailed Description

Tablespace or log data space: let us call them by a common name space

Definition at line 170 of file fil0fil.cc.

Member Function Documentation

◆ UT_LIST_BASE_NODE_T() [1/2]

fil_space_struct::UT_LIST_BASE_NODE_T ( fil_node_t )

base node for the file chain

◆ UT_LIST_BASE_NODE_T() [2/2]

fil_space_struct::UT_LIST_BASE_NODE_T ( fil_node_t )

base node for the file chain

◆ UT_LIST_NODE_T() [1/4]

fil_space_struct::UT_LIST_NODE_T ( fil_space_t )

list of all spaces

◆ UT_LIST_NODE_T() [2/4]

fil_space_struct::UT_LIST_NODE_T ( fil_space_t )

list of all spaces

◆ UT_LIST_NODE_T() [3/4]

fil_space_struct::UT_LIST_NODE_T ( fil_space_t )

list of spaces with at least one unflushed file we have written to

◆ UT_LIST_NODE_T() [4/4]

fil_space_struct::UT_LIST_NODE_T ( fil_space_t )

list of spaces with at least one unflushed file we have written to

Member Data Documentation

◆ flags

ulint fil_space_struct::flags

compressed page size and file format, or 0

Definition at line 206 of file fil0fil.cc.

◆ hash

hash_node_t fil_space_struct::hash

hash chain node

Definition at line 219 of file fil0fil.cc.

◆ id

ulint fil_space_struct::id

space id

Definition at line 173 of file fil0fil.cc.

◆ is_being_deleted

ibool fil_space_struct::is_being_deleted

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 191 of file fil0fil.cc.

◆ is_in_unflushed_spaces

ibool fil_space_struct::is_in_unflushed_spaces

TRUE if this space is currently in unflushed_spaces

Definition at line 228 of file fil0fil.cc.

◆ latch

rw_lock_t fil_space_struct::latch

latch protecting the file space storage allocation

Definition at line 222 of file fil0fil.cc.

◆ magic_n

ulint fil_space_struct::magic_n

FIL_SPACE_MAGIC_N

Definition at line 232 of file fil0fil.cc.

◆ mark

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.

◆ n_pending_flushes

ulint fil_space_struct::n_pending_flushes

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.

◆ n_pending_ibuf_merges

ulint fil_space_struct::n_pending_ibuf_merges

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.

◆ n_reserved_extents

ulint fil_space_struct::n_reserved_extents

number of reserved free extents for ongoing operations like B-tree page split

Definition at line 207 of file fil0fil.cc.

◆ name

char * fil_space_struct::name

space name = the path to the first file in it

Definition at line 171 of file fil0fil.cc.

◆ name_hash

hash_node_t fil_space_struct::name_hash

hash chain the name_hash table

Definition at line 220 of file fil0fil.cc.

◆ purpose

ulint fil_space_struct::purpose

FIL_TABLESPACE, FIL_LOG, or FIL_ARCH_LOG

Definition at line 198 of file fil0fil.cc.

◆ size

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.

◆ stop_ibuf_merges

ibool fil_space_struct::stop_ibuf_merges

we set this TRUE when we start deleting a single-table tablespace

Definition at line 188 of file fil0fil.cc.

◆ stop_ios

ibool fil_space_struct::stop_ios

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.

◆ tablespace_version

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 174 of file fil0fil.cc.


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