 |
MySQL
8.0.23
Source Code Documentation
|
Go to the documentation of this file.
42 #define BUF_NO_CHECKSUM_MAGIC 0xDEADBEEFUL
142 #define BUF_BUDDY_LOW_SHIFT UNIV_ZIP_SIZE_SHIFT_MIN
145 #define BUF_BUDDY_LOW (1U << BUF_BUDDY_LOW_SHIFT)
148 #define BUF_BUDDY_SIZES (UNIV_PAGE_SIZE_SHIFT - BUF_BUDDY_LOW_SHIFT)
151 #define BUF_BUDDY_SIZES_MAX (UNIV_PAGE_SIZE_SHIFT_MAX - BUF_BUDDY_LOW_SHIFT)
156 #define BUF_BUDDY_HIGH (BUF_BUDDY_LOW << BUF_BUDDY_SIZES)
163 #ifndef UNIV_HOTBACKUP
uint32 page_no_t
Page number.
Definition: api0api.h:57
space_id_t m_space
Tablespace id.
Definition: buf0types.h:244
@ BUF_FLUSH_SINGLE_PAGE
Flush via the LRU list but only a single page.
Definition: buf0types.h:73
@ BUF_FLUSH_N_TYPES
Index of last element + 1
Definition: buf0types.h:76
ib_bpmutex_t BPageMutex
Definition: buf0types.h:159
ib_mutex_t FlushListMutex
Definition: buf0types.h:161
friend std::ostream & operator<<(std::ostream &out, const page_id_t &page_id)
Print the given page_id_t object.
Definition: checksum.cc:755
space_id_t space() const
Retrieve the tablespace id.
Definition: buf0types.h:200
ib_mutex_t BufListMutex
Definition: buf0types.h:160
@ BUF_REMOVE_FLUSH_WRITE
Flush dirty pages to disk only don't remove from the buffer pool.
Definition: buf0types.h:92
The buffer control block structure.
Definition: buf0buf.h:1544
uint32_t fold() const
Retrieve the fold value.
Definition: buf0types.h:208
buf_flush_t
Flags for flush types.
Definition: buf0types.h:65
@ SRV_CHECKSUM_ALGORITHM_INNODB
Write innodb, allow crc32, innodb or none when reading.
Definition: buf0types.h:117
@ BUF_REMOVE_NONE
Don't remove any pages.
Definition: buf0types.h:83
Definition: buf0buf.h:1202
page_id_t(space_id_t space, page_no_t page_no)
Constructor from (space, page_no).
Definition: buf0types.h:195
byte buf_frame_t
A buffer frame.
Definition: buf0types.h:59
@ BUF_IO_READ
read pending
Definition: buf0types.h:101
bool is_checksum_strict(srv_checksum_algorithm_t algo)
Definition: buf0types.h:127
BPageMutex BufPoolZipMutex
Definition: buf0types.h:162
rw_lock_t BPageLock
Definition: buf0types.h:164
@ BUF_FLUSH_LIST
Flush via the flush list of dirty blocks.
Definition: buf0types.h:70
buf_remove_t
Algorithm to remove the pages for a tablespace from the buffer pool.
Definition: buf0types.h:81
bool operator==(const page_id_t &a) const
Check if a given page_id_t object is equal to the current one.
Definition: buf0types.h:225
@ SRV_CHECKSUM_ALGORITHM_STRICT_INNODB
Write innodb, allow innodb when reading.
Definition: buf0types.h:119
@ BUF_REMOVE_FLUSH_NO_WRITE
Remove only from the flush list, don't write or sync to disk.
Definition: buf0types.h:89
page_no_t m_page_no
Page number.
Definition: buf0types.h:247
The buffer pool statistics structure.
Definition: buf0buf.h:1899
bool operator!=(const page_id_t &a) const
Check if a given page_id_t object is not equal to the current one.
Definition: buf0types.h:232
@ SRV_CHECKSUM_ALGORITHM_STRICT_NONE
Write none, allow none when reading.
Definition: buf0types.h:123
@ SRV_CHECKSUM_ALGORITHM_NONE
Write none, allow crc32, innodb or none when reading.
Definition: buf0types.h:121
Page identifier.
Definition: buf0types.h:168
@ BUF_IO_WRITE
write pending
Definition: buf0types.h:104
page_id_t()=delete
This class does not have a default constructor, because there is no natural choice for default values...
@ BUF_IO_PIN
disallow relocation of block and its removal from the flush_list
Definition: buf0types.h:107
@ SRV_CHECKSUM_ALGORITHM_STRICT_CRC32
Write crc32, allow crc32 when reading.
Definition: buf0types.h:115
@ SRV_CHECKSUM_ALGORITHM_CRC32
Write crc32, allow crc32, innodb or none when reading.
Definition: buf0types.h:113
@ BUF_FLUSH_LRU
Flush via the LRU list.
Definition: buf0types.h:67
uint32 space_id_t
Tablespace identifier.
Definition: api0api.h:59
The structure used in the spin lock implementation of a read-write lock.
Definition: sync0rw.h:568
bool operator<(const page_id_t &other) const
Provides a lexicographic ordering on <space_id,page_no> pairs.
Definition: buf0types.h:237
@ BUF_IO_NONE
no pending I/O
Definition: buf0types.h:98
Statistics of buddy blocks of a given size.
Definition: buf0buf.h:1981
std::ostream & operator<<(std::ostream &out, const page_id_t &page_id)
Print the given page_id_t object.
Definition: checksum.cc:755
void set_page_no(page_no_t page_no)
Reset the page number only.
Definition: buf0types.h:220
We use FlushObserver to track flushing of non-redo logged pages in bulk create index(BtrBulk....
Definition: buf0flu.h:266
The buffer pool structure.
Definition: buf0buf.h:2007
@ BUF_REMOVE_ALL_NO_WRITE
Remove all pages from the buffer pool, don't write or sync to disk.
Definition: buf0types.h:86
page_no_t page_no() const
Retrieve the page number.
Definition: buf0types.h:204
void reset(space_id_t space, page_no_t page_no)
Reset the values from a (space, page_no).
Definition: buf0types.h:213
buf_io_fix
Flags for io_fix types.
Definition: buf0types.h:96
srv_checksum_algorithm_t
Alternatives for srv_checksum_algorithm, which can be changed by setting innodb_checksum_algorithm.
Definition: buf0types.h:112