52 m_store = ut::new_withkey<ut_lock_free_hash_t>(
87 const int64_t ret =
m_store->
get(
id.conv_to_int());
95 return (
static_cast<uint64_t
>(ret >= 0 ? ret : 0));
105 return (
id.is_ibuf() || is_temp ||
106 (
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:324
Per index buffer pool statistics - contains how many pages for each index are cached in the buffer po...
Definition: buf0stats.h:48
~buf_stat_per_index_t()
Destructor.
Definition: buf0stats.h:57
buf_stat_per_index_t()
Constructor.
Definition: buf0stats.h:51
ut_lock_free_hash_t * m_store
(key, value) storage.
Definition: buf0stats.h:110
void inc(const index_id_t &id)
Increment the number of pages for a given index with 1.
Definition: buf0stats.h:61
bool should_skip(const index_id_t &id)
Assess if we should skip a page from accounting.
Definition: buf0stats.h:102
void dec(const index_id_t &id)
Decrement the number of pages for a given index with 1.
Definition: buf0stats.h:71
uint64_t get(const index_id_t &id)
Get the number of pages in the buffer pool for a given index.
Definition: buf0stats.h:82
Globally unique index identifier.
Definition: dict0types.h:222
static const int64_t NOT_FOUND
The value that is returned when the searched for key is not found.
Definition: ut0lock_free_hash.h:55
Lock free hash table.
Definition: ut0lock_free_hash.h:373
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:556
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:570
int64_t get(uint64_t key) const override
Get the value mapped to a given key.
Definition: ut0lock_free_hash.h:425
Data dictionary global types.
bool fsp_is_system_temporary(space_id_t space_id)
Check if tablespace is system temporary.
Definition: fsp0fsp.cc:298
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:808
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:189
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:49