64#define FSP_EXTENT_SIZE \
65 static_cast<page_no_t>( \
66 ((UNIV_PAGE_SIZE <= (16384) \
67 ? (1048576 / UNIV_PAGE_SIZE) \
68 : ((UNIV_PAGE_SIZE <= (32768)) ? (2097152 / UNIV_PAGE_SIZE) \
69 : (4194304 / UNIV_PAGE_SIZE)))))
115 std::ostream &
to_stream(std::ostream &out)
const;
374 flags &= ~FSP_FLAGS_MASK_ENCRYPTION;
384 flags &= ~FSP_FLAGS_MASK_SDI;
uint32_t space_id_t
Tablespace identifier.
Definition: api0api.h:51
The low-level file system page header & trailer offsets.
constexpr uint32_t FIL_PAGE_DATA
start of the data on the page
Definition: fil0types.h:111
constexpr uint32_t FSP_IBUF_TREE_ROOT_PAGE_NO
insert buffer B-tree root page in tablespace 0; The ibuf tree root page number in tablespace 0; its f...
Definition: fsp0types.h:168
constexpr size_t TRX_SYS_N_RSEGS
Max number of rollback segments: the number of segment specification slots in the transaction system ...
Definition: fsp0types.h:398
constexpr uint32_t FSEG_HDR_PAGE_NO
page number of the inode
Definition: fsp0types.h:90
constexpr uint32_t FSP_RSEG_ARRAY_PAGE_NO
rollback segment directory page number in each undo tablespace
Definition: fsp0types.h:181
bool fsp_is_checksum_disabled(space_id_t space_id)
Check if checksum is disabled for the given space.
Definition: fsp0fsp.cc:307
constexpr uint32_t FSP_XDES_OFFSET
extent descriptor
Definition: fsp0types.h:155
constexpr uint32_t FSEG_HDR_SPACE
space id of the inode
Definition: fsp0types.h:88
bool fsp_is_session_temporary(space_id_t space_id)
Check if the tablespace is session temporary.
Definition: fsp0fsp.cc:291
constexpr size_t FSP_MAX_UNDO_TABLESPACES
Definition: fsp0types.h:403
std::ostream & operator<<(std::ostream &out, const fseg_header &header)
Definition: fsp0types.h:130
bool fsp_flags_is_valid(uint32_t flags)
Validate the tablespace flags.
Definition: fsp0fsp.ic:317
constexpr size_t FSP_MIN_UNDO_TABLESPACES
Minimum and Maximum number of implicit undo tablespaces.
Definition: fsp0types.h:402
constexpr size_t FSP_IMPLICIT_UNDO_TABLESPACES
Definition: fsp0types.h:404
constexpr uint32_t FSEG_PAGE_DATA
On a page of any file segment, data may be put starting from this offset.
Definition: fsp0types.h:79
fsp_reserve_t
Flags for fsp_reserve_free_extents.
Definition: fsp0types.h:136
@ FSP_UNDO
Definition: fsp0types.h:138
@ FSP_BLOB
Definition: fsp0types.h:140
@ FSP_CLEANING
Definition: fsp0types.h:139
@ FSP_NORMAL
Definition: fsp0types.h:137
bool fsp_is_global_temporary(space_id_t space_id)
Check if tablespace is global temporary.
Definition: fsp0fsp.cc:284
constexpr size_t FSP_EXTENT_SIZE_MIN
File space extent size (one megabyte) in pages for MIN page size.
Definition: fsp0types.h:75
constexpr uint32_t FSEG_HEADER_SIZE
Length of the file system header, in bytes.
Definition: fsp0types.h:94
constexpr byte FSP_NO_DIR
no order
Definition: fsp0types.h:52
constexpr uint32_t FSP_TRX_SYS_PAGE_NO
transaction system header, in tablespace 0
Definition: fsp0types.h:170
constexpr uint32_t FSEG_HDR_OFFSET
byte offset of the inode
Definition: fsp0types.h:92
constexpr size_t FSP_MAX_ROLLBACK_SEGMENTS
Definition: fsp0types.h:405
constexpr uint32_t FSP_FIRST_RSEG_PAGE_NO
first rollback segment page, in tablespace 0
Definition: fsp0types.h:172
byte fseg_header_t
Data type for file segment header.
Definition: fsp0types.h:85
constexpr byte FSP_DOWN
alphabetically downwards
Definition: fsp0types.h:50
constexpr size_t FSP_EXTENT_SIZE_MAX
File space extent size (four megabyte) in pages for MAX page size.
Definition: fsp0types.h:72
constexpr uint32_t FSP_IBUF_HEADER_PAGE_NO
The following pages exist in the system tablespace (space 0).
Definition: fsp0types.h:164
constexpr uint32_t FSP_IBUF_BITMAP_OFFSET
insert buffer bitmap; The ibuf bitmap pages are the ones whose page number is the number above plus a...
Definition: fsp0types.h:158
bool fsp_skip_sanity_check(space_id_t space_id)
Skip some of the sanity checks that are time consuming even in debug mode and can affect frequent ver...
Definition: fsp0fsp.cc:318
constexpr uint32_t FSP_FIRST_INODE_PAGE_NO
in every tablespace
Definition: fsp0types.h:160
constexpr byte FSP_UP
alphabetically upwards
Definition: fsp0types.h:48
bool fsp_is_system_temporary(space_id_t space_id)
Check if tablespace is system temporary.
Definition: fsp0fsp.cc:299
constexpr uint32_t FSP_DICT_HDR_PAGE_NO
data dictionary header page, in tablespace 0
Definition: fsp0types.h:174
constexpr void fsp_flags_set_sdi(uint32_t &flags)
Set SDI Index bit in tablespace flags.
Definition: fsp0types.h:378
constexpr uint32_t FSP_FLAGS_GET_UNUSED(uint32_t flags)
Return the contents of the UNUSED bits.
Definition: fsp0types.h:359
constexpr uint32_t fsp_is_shared_tablespace(uint32_t flags)
Use an alias in the code for FSP_FLAGS_GET_SHARED()
Definition: fsp0types.h:388
constexpr uint32_t FSP_FLAGS_POS_SHARED
Zero relative shift position of the start of the SHARED bit.
Definition: fsp0types.h:278
constexpr void fsp_flags_unset_encryption(uint32_t &flags)
Set ENCRYPTION bit in tablespace flags.
Definition: fsp0types.h:373
constexpr uint32_t FSP_FLAGS_MASK_ATOMIC_BLOBS
Bit mask of the ATOMIC_BLOBS field.
Definition: fsp0types.h:301
constexpr uint32_t FSP_FLAGS_WIDTH_ENCRYPTION
Width of the encryption flag.
Definition: fsp0types.h:247
constexpr uint32_t FSP_FLAGS_WIDTH
Width of all the currently known tablespace flags.
Definition: fsp0types.h:253
constexpr uint32_t FSP_FLAGS_POS_ENCRYPTION
Zero relative shift position of the start of the ENCRYPTION bit.
Definition: fsp0types.h:284
constexpr uint32_t FSP_FLAGS_MASK_SDI
Bit mask of the SDI field.
Definition: fsp0types.h:319
constexpr uint32_t FSP_FLAGS_GET_SHARED(uint32_t flags)
Return the contents of the SHARED field.
Definition: fsp0types.h:343
constexpr uint32_t FSP_FLAGS_HAS_SDI(uint32_t flags)
Return the value of the SDI field.
Definition: fsp0types.h:355
constexpr uint32_t FSP_FLAGS_WIDTH_PAGE_SSIZE
Number of flag bits used to indicate the tablespace page size.
Definition: fsp0types.h:234
constexpr uint32_t FSP_FLAGS_WIDTH_SDI
Width of the SDI flag.
Definition: fsp0types.h:250
constexpr uint32_t FSP_FLAGS_WIDTH_SHARED
Width of the SHARED flag.
Definition: fsp0types.h:240
constexpr uint32_t FSP_FLAGS_POS_TEMPORARY
Zero relative shift position of the start of the TEMPORARY bit.
Definition: fsp0types.h:281
constexpr uint32_t FSP_FLAGS_POS_SDI
Zero relative shift position of the start of the SDI bits.
Definition: fsp0types.h:287
constexpr uint32_t FSP_FLAGS_WIDTH_ZIP_SSIZE
Number of flag bits used to indicate the tablespace zip page size.
Definition: fsp0types.h:228
constexpr uint32_t FSP_FLAGS_WIDTH_ATOMIC_BLOBS
Width of the ATOMIC_BLOBS flag.
Definition: fsp0types.h:232
constexpr uint32_t FSP_FLAGS_GET_ENCRYPTION(uint32_t flags)
Return the contents of the ENCRYPTION field.
Definition: fsp0types.h:351
constexpr uint32_t FSP_FLAGS_MASK_TEMPORARY
Bit mask of the TEMPORARY field.
Definition: fsp0types.h:313
constexpr uint32_t FSP_FLAGS_MASK_PAGE_SSIZE
Bit mask of the PAGE_SSIZE field.
Definition: fsp0types.h:304
constexpr uint32_t FSP_FLAGS_WIDTH_TEMPORARY
Width of the TEMPORARY flag.
Definition: fsp0types.h:244
constexpr uint32_t FSP_FLAGS_WIDTH_DATA_DIR
Width of the DATA_DIR flag.
Definition: fsp0types.h:237
constexpr uint32_t FSP_FLAGS_MASK_POST_ANTELOPE
Bit mask of the POST_ANTELOPE field.
Definition: fsp0types.h:295
constexpr void fsp_flags_set_encryption(uint32_t &flags)
Set ENCRYPTION bit in tablespace flags.
Definition: fsp0types.h:368
constexpr uint32_t FSP_FLAGS_HAS_DATA_DIR(uint32_t flags)
Return the value of the DATA_DIR field.
Definition: fsp0types.h:339
constexpr uint32_t FSP_FLAGS_POS_POST_ANTELOPE
Zero relative shift position of the POST_ANTELOPE field.
Definition: fsp0types.h:264
constexpr uint32_t FSP_FLAGS_MASK_ZIP_SSIZE
Bit mask of the ZIP_SSIZE field.
Definition: fsp0types.h:298
constexpr uint32_t FSP_FLAGS_POS_UNUSED
Zero relative shift position of the start of the UNUSED bits.
Definition: fsp0types.h:291
constexpr uint32_t FSP_FLAGS_MASK_ENCRYPTION
Bit mask of the ENCRYPTION field.
Definition: fsp0types.h:316
constexpr uint32_t FSP_FLAGS_WIDTH_POST_ANTELOPE
Width of the POST_ANTELOPE flag.
Definition: fsp0types.h:226
constexpr uint32_t FSP_FLAGS_GET_POST_ANTELOPE(uint32_t flags)
Return the value of the POST_ANTELOPE field.
Definition: fsp0types.h:323
constexpr void fsp_flags_unset_sdi(uint32_t &flags)
Set SDI Index bit in tablespace flags.
Definition: fsp0types.h:383
constexpr uint32_t FSP_FLAGS_POS_ATOMIC_BLOBS
Zero relative shift position of the ATOMIC_BLOBS field.
Definition: fsp0types.h:269
constexpr uint32_t FSP_FLAGS_MASK
A mask of all the known/used bits in tablespace flags.
Definition: fsp0types.h:261
constexpr uint32_t FSP_FLAGS_POS_ZIP_SSIZE
Zero relative shift position of the ZIP_SSIZE field.
Definition: fsp0types.h:266
constexpr uint32_t FSP_FLAGS_POS_DATA_DIR
Zero relative shift position of the start of the DATA_DIR bit.
Definition: fsp0types.h:275
constexpr uint32_t FSP_FLAGS_MASK_SHARED
Bit mask of the SHARED field.
Definition: fsp0types.h:310
constexpr bool FSP_FLAGS_ARE_NOT_SET(uint32_t flags)
Return true if flags are not set.
Definition: fsp0types.h:363
constexpr uint32_t FSP_FLAGS_POS_PAGE_SSIZE
Zero relative shift position of the PAGE_SSIZE field.
Definition: fsp0types.h:272
constexpr uint32_t FSP_FLAGS_MASK_DATA_DIR
Bit mask of the DATA_DIR field.
Definition: fsp0types.h:307
constexpr uint32_t FSP_FLAGS_HAS_ATOMIC_BLOBS(uint32_t flags)
Return the value of the ATOMIC_BLOBS field.
Definition: fsp0types.h:331
constexpr uint32_t FSP_FLAGS_GET_PAGE_SSIZE(uint32_t flags)
Return the value of the PAGE_SSIZE field.
Definition: fsp0types.h:335
constexpr uint32_t FSP_FLAGS_GET_ZIP_SSIZE(uint32_t flags)
Return the value of the ZIP_SSIZE field.
Definition: fsp0types.h:327
constexpr uint32_t FSP_FLAGS_GET_TEMPORARY(uint32_t flags)
Return the contents of the TEMPORARY field.
Definition: fsp0types.h:347
static int flags[50]
Definition: hp_test1.cc:40
Mini-transaction handle and buffer.
Definition: mtr0mtr.h:177
Version control for database, common definitions, and include files.
constexpr uint32_t UNIV_PAGE_SIZE_MIN
Minimum page size InnoDB currently supports.
Definition: univ.i:321
constexpr size_t UNIV_PAGE_SIZE_MAX
Maximum page size InnoDB currently supports.
Definition: univ.i:323