MySQL 8.0.39
Source Code Documentation
|
File node of a tablespace or the log data space. More...
#include <fil0fil.h>
Public Types | |
using | List_node = UT_LIST_NODE_T(fil_node_t) |
Public Member Functions | |
bool | can_be_closed () const |
Returns true if the file can be closed. More... | |
bool | is_flushed () const |
Returns true if the file is flushed. More... | |
void | set_flushed () |
Sets file to flushed state. More... | |
Public Attributes | |
fil_space_t * | space |
tablespace containing this file More... | |
char * | name |
file name; protected by Fil_shard::m_mutex and log_sys->mutex. More... | |
bool | is_open |
whether this file is open. More... | |
pfs_os_file_t | handle |
file handle (valid if is_open) More... | |
os_event_t | sync_event |
event that groups and serializes calls to fsync More... | |
bool | is_raw_disk |
whether the file actually is a raw device or disk partition More... | |
page_no_t | size |
size of the file in database pages (0 if not known yet); the possible last incomplete megabyte may be ignored if space->id == 0 More... | |
page_no_t | flush_size |
Size of the file when last flushed, used to force the flush when file grows to keep the filesystem metadata synced when using O_DIRECT_NO_FSYNC. More... | |
page_no_t | init_size |
initial size of the file in database pages; FIL_IBD_FILE_INITIAL_SIZE by default More... | |
page_no_t | max_size |
maximum size of the file in database pages More... | |
size_t | n_pending_ios |
count of pending I/O's; is_open must be true if nonzero More... | |
size_t | n_pending_flushes |
count of pending flushes; is_open must be true if nonzero More... | |
bool | is_being_extended |
Set to true when a file is being extended. More... | |
int64_t | modification_counter |
number of writes to the file since the system was started More... | |
int64_t | flush_counter |
the modification_counter of the latest flush to disk More... | |
List_node | LRU |
link to the fil_system->LRU list (keeping track of open files) More... | |
bool | punch_hole |
whether the file system of this file supports PUNCH HOLE More... | |
size_t | block_size |
block size to use for punching holes More... | |
bool | atomic_write |
whether atomic write is enabled for this file More... | |
size_t | magic_n |
FIL_NODE_MAGIC_N. More... | |
File node of a tablespace or the log data space.
bool fil_node_t::can_be_closed | ( | ) | const |
Returns true if the file can be closed.
|
inline |
Returns true if the file is flushed.
|
inline |
Sets file to flushed state.
bool fil_node_t::atomic_write |
whether atomic write is enabled for this file
size_t fil_node_t::block_size |
block size to use for punching holes
int64_t fil_node_t::flush_counter |
the modification_counter of the latest flush to disk
page_no_t fil_node_t::flush_size |
Size of the file when last flushed, used to force the flush when file grows to keep the filesystem metadata synced when using O_DIRECT_NO_FSYNC.
pfs_os_file_t fil_node_t::handle |
file handle (valid if is_open)
page_no_t fil_node_t::init_size |
initial size of the file in database pages; FIL_IBD_FILE_INITIAL_SIZE by default
bool fil_node_t::is_being_extended |
Set to true when a file is being extended.
bool fil_node_t::is_open |
whether this file is open.
Note: We set the is_open flag after we increase the write the MLOG_FILE_OPEN record to redo log. Therefore we increment the in_use reference count before setting the OPEN flag.
bool fil_node_t::is_raw_disk |
whether the file actually is a raw device or disk partition
List_node fil_node_t::LRU |
link to the fil_system->LRU list (keeping track of open files)
size_t fil_node_t::magic_n |
FIL_NODE_MAGIC_N.
page_no_t fil_node_t::max_size |
maximum size of the file in database pages
int64_t fil_node_t::modification_counter |
number of writes to the file since the system was started
size_t fil_node_t::n_pending_flushes |
count of pending flushes; is_open must be true if nonzero
size_t fil_node_t::n_pending_ios |
count of pending I/O's; is_open must be true if nonzero
char* fil_node_t::name |
file name; protected by Fil_shard::m_mutex and log_sys->mutex.
bool fil_node_t::punch_hole |
whether the file system of this file supports PUNCH HOLE
page_no_t fil_node_t::size |
size of the file in database pages (0 if not known yet); the possible last incomplete megabyte may be ignored if space->id == 0
fil_space_t* fil_node_t::space |
tablespace containing this file
os_event_t fil_node_t::sync_event |
event that groups and serializes calls to fsync