93 bool parse_params(
const char *filepath_spec,
bool supports_raw);
123 return (
m_files.back().m_size);
uint32_t page_no_t
Page number.
Definition: api0api.h:46
Data file control information.
Definition: fsp0file.h:72
Data structure that contains the information about shared tablespaces.
Definition: fsp0sysspace.h:58
void file_found(Datafile &file)
Note that the data file was found.
Definition: fsp0sysspace.cc:680
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:784
file_status_t
Definition: fsp0sysspace.h:212
@ FILE_STATUS_RW_PERMISSION_ERROR
status not set
Definition: fsp0sysspace.h:214
@ FILE_STATUS_READ_WRITE_ERROR
permission error
Definition: fsp0sysspace.h:215
@ FILE_STATUS_VOID
Definition: fsp0sysspace.h:213
@ FILE_STATUS_NOT_REGULAR_FILE_ERROR
not readable/writable
Definition: fsp0sysspace.h:216
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:237
dberr_t create_file(Datafile &file)
Create a data file.
Definition: fsp0sysspace.cc:414
dberr_t check_size(Datafile &file)
Verify the size of the physical file.
Definition: fsp0sysspace.cc:330
dberr_t open_file(Datafile &file)
Open a data file.
Definition: fsp0sysspace.cc:451
bool m_created_new_raw
If the following is true we do not allow inserts etc.
Definition: fsp0sysspace.h:242
void set_last_file_size(page_no_t size)
Set the last file size.
Definition: fsp0sysspace.h:114
page_no_t get_increment() const
Definition: fsp0sysspace.cc:909
bool m_sanity_checks_done
if false, then sanity checks are still pending
Definition: fsp0sysspace.h:248
dberr_t file_not_found(Datafile &file, bool create_new_db)
Note that the data file was not found.
Definition: fsp0sysspace.cc:633
bool m_is_tablespace_full
Tablespace full status.
Definition: fsp0sysspace.h:245
ulint can_auto_extend_last_file() const
Definition: fsp0sysspace.h:110
bool get_tablespace_full_status()
Get tablespace full status.
Definition: fsp0sysspace.h:79
void set_sanity_check_status(bool status)
Set sanity check status.
Definition: fsp0sysspace.h:83
page_no_t last_file_size() const
Get the number of pages in the last data file in the tablespace.
Definition: fsp0sysspace.h:121
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:100
dberr_t check_file_spec(bool create_new_db, ulint min_expected_size)
Check the data file specification.
Definition: fsp0sysspace.cc:703
SysTablespace()
Definition: fsp0sysspace.h:60
void set_tablespace_full_status(bool is_full)
Set tablespace full status.
Definition: fsp0sysspace.h:73
void shutdown()
Free the memory allocated by parse()
Definition: fsp0sysspace.cc:317
dberr_t set_size(Datafile &file)
Set the size of the file.
Definition: fsp0sysspace.cc:382
page_no_t get_autoextend_increment() const
Definition: fsp0sysspace.h:128
bool get_sanity_check_status()
Get sanity check status.
Definition: fsp0sysspace.h:87
bool created_new_raw() const
Definition: fsp0sysspace.h:106
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:569
static char * parse_file_name(char *ptr)
Put the pointer to the next byte after a valid file name.
Definition: fsp0sysspace.cc:82
dberr_t create(Datafile &file)
Create a data file.
~SysTablespace() override
Definition: fsp0sysspace.h:69
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:138
bool parse_params(const char *filepath_spec, bool supports_raw)
Parse the input params and populate member variables.
Definition: fsp0sysspace.cc:136
dberr_t read_lsn_and_check_flags(lsn_t *flushed_lsn)
Check the tablespace header for this tablespace.
Definition: fsp0sysspace.cc:513
bool m_auto_extend_last_file
if true, then we auto-extend the last data file
Definition: fsp0sysspace.h:233
Data structure that contains the information about shared tablespaces.
Definition: fsp0space.h:47
files_t m_files
Data file information - each Datafile can be accessed globally.
Definition: fsp0space.h:52
dberr_t
Definition: db0err.h:39
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:65
SysTablespace srv_tmp_space
The control info of a temporary table shared tablespace.
Definition: fsp0sysspace.cc:61
SysTablespace srv_sys_space
The control info of the system tablespace.
Definition: fsp0sysspace.cc:58
bool srv_skip_temp_table_checks_debug
Control if extra debug checks need to be done for temporary tablespace.
Definition: fsp0sysspace.cc:72
uint64_t lsn_t
Type used for all log sequence number storage and arithmetic.
Definition: log0types.h:63
size_t size(const char *const c)
Definition: base64.h:46
uint64_t os_offset_t
File offset in bytes.
Definition: os0file.h:87
required uint32 status
Definition: replication_asynchronous_connection_failover.proto:61
Version control for database, common definitions, and include files.
#define UNIV_PAGE_SIZE
The universal page size of the database.
Definition: univ.i:294
unsigned long int ulint
Definition: univ.i:406
#define ut_ad(EXPR)
Debug assertion.
Definition: ut0dbg.h:105