53 m_store = ut::new_withkey<ut_lock_free_hash_t>(
88 const int64_t ret =
m_store->
get(
id.conv_to_int());
96 return (
static_cast<uint64_t
>(ret >= 0 ? ret : 0));
106 return (
id.is_ibuf() || is_temp ||
107 (
id.m_index_id & 0xFFFFFFFF00000000ULL) != 0);
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:326
Per index buffer pool statistics - contains how many pages for each index are cached in the buffer po...
Definition: buf0stats.h:49
~buf_stat_per_index_t()
Destructor.
Definition: buf0stats.h:58
buf_stat_per_index_t()
Constructor.
Definition: buf0stats.h:52
ut_lock_free_hash_t * m_store
(key, value) storage.
Definition: buf0stats.h:111
void inc(const index_id_t &id)
Increment the number of pages for a given index with 1.
Definition: buf0stats.h:62
bool should_skip(const index_id_t &id)
Assess if we should skip a page from accounting.
Definition: buf0stats.h:103
void dec(const index_id_t &id)
Decrement the number of pages for a given index with 1.
Definition: buf0stats.h:72
uint64_t get(const index_id_t &id)
Get the number of pages in the buffer pool for a given index.
Definition: buf0stats.h:83
Globally unique index identifier.
Definition: dict0types.h:237
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 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.
bool fsp_is_system_temporary(space_id_t space_id)
Check if tablespace is system temporary.
Definition: fsp0fsp.cc:305
Multi file, shared, system tablespace implementation.
void delete_(T *ptr) noexcept
Releases storage which has been dynamically allocated through any of the ut::new*() variants.
Definition: ut0new.h:811
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
Version control for database, common definitions, and include files.
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