92 bool parse_params(
const char *filepath_spec,
bool supports_raw);
122 return (
m_files.back().m_size);
uint32_t page_no_t
Page number.
Definition: api0api.h:48
Data file control information.
Definition: fsp0file.h:71
Data structure that contains the information about shared tablespaces.
Definition: fsp0sysspace.h:57
void file_found(Datafile &file)
Note that the data file was found.
Definition: fsp0sysspace.cc:693
dberr_t open_or_create(bool is_temp, bool create_new_db, page_no_t *sum_new_sizes, lsn_t *flush_lsn)
Open or create the data files.
Definition: fsp0sysspace.cc:797
file_status_t
Definition: fsp0sysspace.h:211
@ FILE_STATUS_RW_PERMISSION_ERROR
status not set
Definition: fsp0sysspace.h:213
@ FILE_STATUS_READ_WRITE_ERROR
permission error
Definition: fsp0sysspace.h:214
@ FILE_STATUS_VOID
Definition: fsp0sysspace.h:212
@ FILE_STATUS_NOT_REGULAR_FILE_ERROR
not readable/writable
Definition: fsp0sysspace.h:215
page_no_t m_last_file_size_max
if != 0, this tells the max size auto-extending may increase the last data file size
Definition: fsp0sysspace.h:236
dberr_t create_file(Datafile &file)
Create a data file.
Definition: fsp0sysspace.cc:413
dberr_t check_size(Datafile &file)
Verify the size of the physical file.
Definition: fsp0sysspace.cc:329
dberr_t open_file(Datafile &file)
Open a data file.
Definition: fsp0sysspace.cc:450
bool m_created_new_raw
If the following is true we do not allow inserts etc.
Definition: fsp0sysspace.h:241
void set_last_file_size(page_no_t size)
Set the last file size.
Definition: fsp0sysspace.h:113
page_no_t get_increment() const
Definition: fsp0sysspace.cc:922
bool m_sanity_checks_done
if false, then sanity checks are still pending
Definition: fsp0sysspace.h:247
dberr_t file_not_found(Datafile &file, bool create_new_db)
Note that the data file was not found.
Definition: fsp0sysspace.cc:646
bool m_is_tablespace_full
Tablespace full status.
Definition: fsp0sysspace.h:244
ulint can_auto_extend_last_file() const
Definition: fsp0sysspace.h:109
bool get_tablespace_full_status()
Get tablespace full status.
Definition: fsp0sysspace.h:78
void set_sanity_check_status(bool status)
Set sanity check status.
Definition: fsp0sysspace.h:82
page_no_t last_file_size() const
Get the number of pages in the last data file in the tablespace.
Definition: fsp0sysspace.h:120
page_no_t parse_units(char *&ptr)
Convert a numeric string that optionally ends in upper or lower case G, M, or K, rounding off to the ...
Definition: fsp0sysspace.cc:99
dberr_t check_file_spec(bool create_new_db, ulint min_expected_size)
Check the data file specification.
Definition: fsp0sysspace.cc:716
SysTablespace()
Definition: fsp0sysspace.h:59
void set_tablespace_full_status(bool is_full)
Set tablespace full status.
Definition: fsp0sysspace.h:72
void shutdown()
Free the memory allocated by parse()
Definition: fsp0sysspace.cc:316
dberr_t set_size(Datafile &file)
Set the size of the file.
Definition: fsp0sysspace.cc:381
page_no_t get_autoextend_increment() const
Definition: fsp0sysspace.h:127
bool get_sanity_check_status()
Get sanity check status.
Definition: fsp0sysspace.h:86
bool created_new_raw() const
Definition: fsp0sysspace.h:105
dberr_t check_file_status(const Datafile &file, file_status_t &reason)
Check if a file can be opened in the correct mode.
Definition: fsp0sysspace.cc:582
static char * parse_file_name(char *ptr)
Put the pointer to the next byte after a valid file name.
Definition: fsp0sysspace.cc:81
dberr_t create(Datafile &file)
Create a data file.
~SysTablespace() override
Definition: fsp0sysspace.h:68
page_no_t get_pages_from_size(os_offset_t size)
Round the number of bytes in the file to MegaBytes and then return the number of pages.
Definition: fsp0sysspace.h:137
bool parse_params(const char *filepath_spec, bool supports_raw)
Parse the input params and populate member variables.
Definition: fsp0sysspace.cc:135
dberr_t read_lsn_and_check_flags(lsn_t *flushed_lsn)
Check the tablespace header for this tablespace.
Definition: fsp0sysspace.cc:512
bool m_auto_extend_last_file
if true, then we auto-extend the last data file
Definition: fsp0sysspace.h:232
Data structure that contains the information about shared tablespaces.
Definition: fsp0space.h:46
files_t m_files
Data file information - each Datafile can be accessed globally.
Definition: fsp0space.h:51
dberr_t
Definition: db0err.h:38
General shared tablespace implementation.
ulong sys_tablespace_auto_extend_increment
If the last data file is auto-extended, we add this many pages to it at a time.
Definition: fsp0sysspace.cc:64
SysTablespace srv_tmp_space
The control info of a temporary table shared tablespace.
Definition: fsp0sysspace.cc:60
SysTablespace srv_sys_space
The control info of the system tablespace.
Definition: fsp0sysspace.cc:57
bool srv_skip_temp_table_checks_debug
Control if extra debug checks need to be done for temporary tablespace.
Definition: fsp0sysspace.cc:71
uint64_t lsn_t
Type used for all log sequence number storage and arithmetic.
Definition: log0types.h:62
uint64_t os_offset_t
File offset in bytes.
Definition: os0file.h:86
required uint32 status
Definition: replication_asynchronous_connection_failover.proto:60
Version control for database, common definitions, and include files.
#define UNIV_PAGE_SIZE
The universal page size of the database.
Definition: univ.i:293
unsigned long int ulint
Definition: univ.i:405
#define ut_ad(EXPR)
Debug assertion.
Definition: ut0dbg.h:68