70 m_store = ut::new_withkey<ut_lock_free_hash_t>(
153 const int64_t ret =
m_store->
get(
id.conv_to_int());
161 return (
static_cast<uint64_t
>(ret >= 0 ? ret : 0));
205 (
id.m_index_id & 0xFFFFFFFF00000000ULL) != 0);
uint32_t space_id_t
Tablespace identifier.
Definition: api0api.h:49
static space_index_t btr_page_get_index_id(const page_t *page)
Gets the index id field of a page.
constexpr space_index_t BTR_FREED_INDEX_ID
PAGE_INDEX_ID value for freed index B-trees.
Definition: btr0btr.h:62
buf_stat_per_index_t * buf_stat_per_index
Container for how many pages from each index are contained in the buffer pool(s).
Definition: buf0buf.cc:329
Per index buffer pool statistics.
Definition: buf0stats.h:66
~buf_stat_per_index_t()
Destructor.
Definition: buf0stats.h:75
void change_if_tracked_page(const page_t *frame, bool increment)
Change the page count if a frame currently satisfies the accounting predicate.
Definition: buf0stats.h:169
buf_stat_per_index_t()
Constructor.
Definition: buf0stats.h:69
void inc_if_tracked_page(const page_t *frame)
Increment the page count if a frame currently satisfies the accounting predicate.
Definition: buf0stats.h:124
ut_lock_free_hash_t * m_store
(key, value) storage.
Definition: buf0stats.h:209
bool is_tracked_page(const page_t *frame)
Check whether a frame currently satisfies the accounting predicate.
Definition: buf0stats.h:131
void inc(const index_id_t &id)
Increment the number of pages for a given index with 1.
Definition: buf0stats.h:79
void reset(const index_id_t &id)
Set the count for given id to 0.
Definition: buf0stats.h:94
bool should_skip(const index_id_t &id)
Assess if we should skip a page from accounting.
Definition: buf0stats.h:194
void dec_if_tracked_page(const page_t *frame)
Decrement the page count if a frame currently satisfies the accounting predicate.
Definition: buf0stats.h:117
void dec(const index_id_t &id)
Decrement the number of pages for a given index with 1.
Definition: buf0stats.h:104
static space_id_t get_space_id(const page_t *frame)
Gets the space id from a page image.
Definition: buf0stats.h:187
uint64_t get(const index_id_t &id)
Get the number of pages in the buffer pool for a given index.
Definition: buf0stats.h:148
Globally unique index identifier.
Definition: dict0types.h:221
static const int64_t NOT_FOUND
The value that is returned when the searched for key is not found.
Definition: ut0lock_free_hash.h:56
Lock free hash table.
Definition: ut0lock_free_hash.h:374
void set(uint64_t key, int64_t val) override
Set the value for a given key, either inserting a new (key, val) tuple or overwriting an existent val...
Definition: ut0lock_free_hash.h:474
void inc(uint64_t key) override
Increment the value for a given key with 1 or insert a new tuple (key, 1).
Definition: ut0lock_free_hash.h:557
void dec(uint64_t key) override
Decrement the value of a given key with 1 or insert a new tuple (key, -1).
Definition: ut0lock_free_hash.h:571
int64_t get(uint64_t key) const override
Get the value mapped to a given key.
Definition: ut0lock_free_hash.h:426
Data dictionary global types.
The low-level file system.
constexpr page_type_t FIL_PAGE_INDEX
File page types (values of FIL_PAGE_TYPE)
Definition: fil0fil.h:1562
constexpr page_type_t FIL_PAGE_RTREE
R-tree node.
Definition: fil0fil.h:1565
page_type_t fil_page_get_type(const byte *page)
Get the file page type.
Definition: fil0fil.h:1675
constexpr uint32_t FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID
starting from 4.1.x this contains the space id of the page
Definition: fil0types.h:105
bool fsp_is_system_temporary(space_id_t space_id)
Check if tablespace is system temporary.
Definition: fsp0fsp.cc:294
Multi file, shared, system tablespace implementation.
Utilities for converting data from the database file to the machine format.
static uint32_t mach_read_from_4(const byte *b)
The following function is used to fetch data from 4 consecutive bytes.
void delete_(T *ptr) noexcept
Releases storage which has been dynamically allocated through any of the ut::new*() variants.
Definition: ut0new.h:651
PSI_memory_key_t make_psi_memory_key(PSI_memory_key key)
Convenience helper function to create type-safe representation of PSI_memory_key.
Definition: ut0new.h:190
static bool page_is_leaf(const page_t *page)
Determine whether the page is a B-tree leaf.
byte page_t
Type of the index page.
Definition: page0types.h:152
long long srv_buf_pool_curr_size
Current size in bytes.
Definition: srv0srv.cc:450
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:403
constexpr uint32_t UNIV_ZIP_SIZE_MIN
Smallest compressed page size.
Definition: univ.i:327
#define ut_ad(EXPR)
Debug assertion.
Definition: ut0dbg.h:109
Lock free hash implementation.
Dynamic memory allocation routines and custom allocators specifically crafted to support memory instr...
PSI_memory_key mem_key_buf_stat_per_index_t
Definition: ut0new.cc:50
unsigned long id[MAX_DEAD]
Definition: xcom_base.cc:510