63#define FSP_EXTENT_SIZE \
64 static_cast<page_no_t>( \
65 ((UNIV_PAGE_SIZE <= (16384) \
66 ? (1048576 / UNIV_PAGE_SIZE) \
67 : ((UNIV_PAGE_SIZE <= (32768)) ? (2097152 / UNIV_PAGE_SIZE) \
68 : (4194304 / UNIV_PAGE_SIZE)))))
114 std::ostream &
to_stream(std::ostream &out)
const;
373 flags &= ~FSP_FLAGS_MASK_ENCRYPTION;
383 flags &= ~FSP_FLAGS_MASK_SDI;
uint32_t space_id_t
Tablespace identifier.
Definition: api0api.h:50
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:110
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:167
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:397
constexpr uint32_t FSEG_HDR_PAGE_NO
page number of the inode
Definition: fsp0types.h:89
constexpr uint32_t FSP_RSEG_ARRAY_PAGE_NO
rollback segment directory page number in each undo tablespace
Definition: fsp0types.h:180
bool fsp_is_checksum_disabled(space_id_t space_id)
Check if checksum is disabled for the given space.
Definition: fsp0fsp.cc:306
constexpr uint32_t FSP_XDES_OFFSET
extent descriptor
Definition: fsp0types.h:154
constexpr uint32_t FSEG_HDR_SPACE
space id of the inode
Definition: fsp0types.h:87
bool fsp_is_session_temporary(space_id_t space_id)
Check if the tablespace is session temporary.
Definition: fsp0fsp.cc:290
constexpr size_t FSP_MAX_UNDO_TABLESPACES
Definition: fsp0types.h:402
std::ostream & operator<<(std::ostream &out, const fseg_header &header)
Definition: fsp0types.h:129
bool fsp_flags_is_valid(uint32_t flags)
Validate the tablespace flags.
Definition: fsp0fsp.ic:316
constexpr size_t FSP_MIN_UNDO_TABLESPACES
Minimum and Maximum number of implicit undo tablespaces.
Definition: fsp0types.h:401
constexpr size_t FSP_IMPLICIT_UNDO_TABLESPACES
Definition: fsp0types.h:403
constexpr uint32_t FSEG_PAGE_DATA
On a page of any file segment, data may be put starting from this offset.
Definition: fsp0types.h:78
fsp_reserve_t
Flags for fsp_reserve_free_extents.
Definition: fsp0types.h:135
@ FSP_UNDO
Definition: fsp0types.h:137
@ FSP_BLOB
Definition: fsp0types.h:139
@ FSP_CLEANING
Definition: fsp0types.h:138
@ FSP_NORMAL
Definition: fsp0types.h:136
bool fsp_is_global_temporary(space_id_t space_id)
Check if tablespace is global temporary.
Definition: fsp0fsp.cc:283
constexpr size_t FSP_EXTENT_SIZE_MIN
File space extent size (one megabyte) in pages for MIN page size.
Definition: fsp0types.h:74
constexpr uint32_t FSEG_HEADER_SIZE
Length of the file system header, in bytes.
Definition: fsp0types.h:93
constexpr byte FSP_NO_DIR
no order
Definition: fsp0types.h:51
constexpr uint32_t FSP_TRX_SYS_PAGE_NO
transaction system header, in tablespace 0
Definition: fsp0types.h:169
constexpr uint32_t FSEG_HDR_OFFSET
byte offset of the inode
Definition: fsp0types.h:91
constexpr size_t FSP_MAX_ROLLBACK_SEGMENTS
Definition: fsp0types.h:404
constexpr uint32_t FSP_FIRST_RSEG_PAGE_NO
first rollback segment page, in tablespace 0
Definition: fsp0types.h:171
byte fseg_header_t
Data type for file segment header.
Definition: fsp0types.h:84
constexpr byte FSP_DOWN
alphabetically downwards
Definition: fsp0types.h:49
constexpr size_t FSP_EXTENT_SIZE_MAX
File space extent size (four megabyte) in pages for MAX page size.
Definition: fsp0types.h:71
constexpr uint32_t FSP_IBUF_HEADER_PAGE_NO
The following pages exist in the system tablespace (space 0).
Definition: fsp0types.h:163
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:157
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:317
constexpr uint32_t FSP_FIRST_INODE_PAGE_NO
in every tablespace
Definition: fsp0types.h:159
constexpr byte FSP_UP
alphabetically upwards
Definition: fsp0types.h:47
bool fsp_is_system_temporary(space_id_t space_id)
Check if tablespace is system temporary.
Definition: fsp0fsp.cc:298
constexpr uint32_t FSP_DICT_HDR_PAGE_NO
data dictionary header page, in tablespace 0
Definition: fsp0types.h:173
constexpr void fsp_flags_set_sdi(uint32_t &flags)
Set SDI Index bit in tablespace flags.
Definition: fsp0types.h:377
constexpr uint32_t FSP_FLAGS_GET_UNUSED(uint32_t flags)
Return the contents of the UNUSED bits.
Definition: fsp0types.h:358
constexpr uint32_t fsp_is_shared_tablespace(uint32_t flags)
Use an alias in the code for FSP_FLAGS_GET_SHARED()
Definition: fsp0types.h:387
constexpr uint32_t FSP_FLAGS_POS_SHARED
Zero relative shift position of the start of the SHARED bit.
Definition: fsp0types.h:277
constexpr void fsp_flags_unset_encryption(uint32_t &flags)
Set ENCRYPTION bit in tablespace flags.
Definition: fsp0types.h:372
constexpr uint32_t FSP_FLAGS_MASK_ATOMIC_BLOBS
Bit mask of the ATOMIC_BLOBS field.
Definition: fsp0types.h:300
constexpr uint32_t FSP_FLAGS_WIDTH_ENCRYPTION
Width of the encryption flag.
Definition: fsp0types.h:246
constexpr uint32_t FSP_FLAGS_WIDTH
Width of all the currently known tablespace flags.
Definition: fsp0types.h:252
constexpr uint32_t FSP_FLAGS_POS_ENCRYPTION
Zero relative shift position of the start of the ENCRYPTION bit.
Definition: fsp0types.h:283
constexpr uint32_t FSP_FLAGS_MASK_SDI
Bit mask of the SDI field.
Definition: fsp0types.h:318
constexpr uint32_t FSP_FLAGS_GET_SHARED(uint32_t flags)
Return the contents of the SHARED field.
Definition: fsp0types.h:342
constexpr uint32_t FSP_FLAGS_HAS_SDI(uint32_t flags)
Return the value of the SDI field.
Definition: fsp0types.h:354
constexpr uint32_t FSP_FLAGS_WIDTH_PAGE_SSIZE
Number of flag bits used to indicate the tablespace page size.
Definition: fsp0types.h:233
constexpr uint32_t FSP_FLAGS_WIDTH_SDI
Width of the SDI flag.
Definition: fsp0types.h:249
constexpr uint32_t FSP_FLAGS_WIDTH_SHARED
Width of the SHARED flag.
Definition: fsp0types.h:239
constexpr uint32_t FSP_FLAGS_POS_TEMPORARY
Zero relative shift position of the start of the TEMPORARY bit.
Definition: fsp0types.h:280
constexpr uint32_t FSP_FLAGS_POS_SDI
Zero relative shift position of the start of the SDI bits.
Definition: fsp0types.h:286
constexpr uint32_t FSP_FLAGS_WIDTH_ZIP_SSIZE
Number of flag bits used to indicate the tablespace zip page size.
Definition: fsp0types.h:227
constexpr uint32_t FSP_FLAGS_WIDTH_ATOMIC_BLOBS
Width of the ATOMIC_BLOBS flag.
Definition: fsp0types.h:231
constexpr uint32_t FSP_FLAGS_GET_ENCRYPTION(uint32_t flags)
Return the contents of the ENCRYPTION field.
Definition: fsp0types.h:350
constexpr uint32_t FSP_FLAGS_MASK_TEMPORARY
Bit mask of the TEMPORARY field.
Definition: fsp0types.h:312
constexpr uint32_t FSP_FLAGS_MASK_PAGE_SSIZE
Bit mask of the PAGE_SSIZE field.
Definition: fsp0types.h:303
constexpr uint32_t FSP_FLAGS_WIDTH_TEMPORARY
Width of the TEMPORARY flag.
Definition: fsp0types.h:243
constexpr uint32_t FSP_FLAGS_WIDTH_DATA_DIR
Width of the DATA_DIR flag.
Definition: fsp0types.h:236
constexpr uint32_t FSP_FLAGS_MASK_POST_ANTELOPE
Bit mask of the POST_ANTELOPE field.
Definition: fsp0types.h:294
constexpr void fsp_flags_set_encryption(uint32_t &flags)
Set ENCRYPTION bit in tablespace flags.
Definition: fsp0types.h:367
constexpr uint32_t FSP_FLAGS_HAS_DATA_DIR(uint32_t flags)
Return the value of the DATA_DIR field.
Definition: fsp0types.h:338
constexpr uint32_t FSP_FLAGS_POS_POST_ANTELOPE
Zero relative shift position of the POST_ANTELOPE field.
Definition: fsp0types.h:263
constexpr uint32_t FSP_FLAGS_MASK_ZIP_SSIZE
Bit mask of the ZIP_SSIZE field.
Definition: fsp0types.h:297
constexpr uint32_t FSP_FLAGS_POS_UNUSED
Zero relative shift position of the start of the UNUSED bits.
Definition: fsp0types.h:290
constexpr uint32_t FSP_FLAGS_MASK_ENCRYPTION
Bit mask of the ENCRYPTION field.
Definition: fsp0types.h:315
constexpr uint32_t FSP_FLAGS_WIDTH_POST_ANTELOPE
Width of the POST_ANTELOPE flag.
Definition: fsp0types.h:225
constexpr uint32_t FSP_FLAGS_GET_POST_ANTELOPE(uint32_t flags)
Return the value of the POST_ANTELOPE field.
Definition: fsp0types.h:322
constexpr void fsp_flags_unset_sdi(uint32_t &flags)
Set SDI Index bit in tablespace flags.
Definition: fsp0types.h:382
constexpr uint32_t FSP_FLAGS_POS_ATOMIC_BLOBS
Zero relative shift position of the ATOMIC_BLOBS field.
Definition: fsp0types.h:268
constexpr uint32_t FSP_FLAGS_MASK
A mask of all the known/used bits in tablespace flags.
Definition: fsp0types.h:260
constexpr uint32_t FSP_FLAGS_POS_ZIP_SSIZE
Zero relative shift position of the ZIP_SSIZE field.
Definition: fsp0types.h:265
constexpr uint32_t FSP_FLAGS_POS_DATA_DIR
Zero relative shift position of the start of the DATA_DIR bit.
Definition: fsp0types.h:274
constexpr uint32_t FSP_FLAGS_MASK_SHARED
Bit mask of the SHARED field.
Definition: fsp0types.h:309
constexpr bool FSP_FLAGS_ARE_NOT_SET(uint32_t flags)
Return true if flags are not set.
Definition: fsp0types.h:362
constexpr uint32_t FSP_FLAGS_POS_PAGE_SSIZE
Zero relative shift position of the PAGE_SSIZE field.
Definition: fsp0types.h:271
constexpr uint32_t FSP_FLAGS_MASK_DATA_DIR
Bit mask of the DATA_DIR field.
Definition: fsp0types.h:306
constexpr uint32_t FSP_FLAGS_HAS_ATOMIC_BLOBS(uint32_t flags)
Return the value of the ATOMIC_BLOBS field.
Definition: fsp0types.h:330
constexpr uint32_t FSP_FLAGS_GET_PAGE_SSIZE(uint32_t flags)
Return the value of the PAGE_SSIZE field.
Definition: fsp0types.h:334
constexpr uint32_t FSP_FLAGS_GET_ZIP_SSIZE(uint32_t flags)
Return the value of the ZIP_SSIZE field.
Definition: fsp0types.h:326
constexpr uint32_t FSP_FLAGS_GET_TEMPORARY(uint32_t flags)
Return the contents of the TEMPORARY field.
Definition: fsp0types.h:346
static int flags[50]
Definition: hp_test1.cc:39
Mini-transaction handle and buffer.
Definition: mtr0mtr.h:176
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:320
constexpr size_t UNIV_PAGE_SIZE_MAX
Maximum page size InnoDB currently supports.
Definition: univ.i:322