|
| Page_shards () |
|
| ~Page_shards () |
|
const Lock_mutex & | get_mutex (const page_id_t &page_id) const |
| Returns the mutex which (together with the global latch) protects the page shard which contains record locks for records from the given page. More...
|
|
Lock_mutex & | get_mutex (const page_id_t &page_id) |
| Returns the mutex which (together with the global latch) protects the page shard which contains record locks for records from the given page. More...
|
|
Lock_mutex & | get_mutex (const uint64_t cell_id) |
| Returns the mutex which (together with the global latch) protects the page shard which contains record locks from given cell of hash tables. More...
|
|
|
static size_t | get_shard (const page_id_t &page_id) |
| Identifies the page shard which contains record locks for records from the given page. More...
|
|
◆ Page_shards()
locksys::Latches::Page_shards::Page_shards |
( |
| ) |
|
◆ ~Page_shards()
locksys::Latches::Page_shards::~Page_shards |
( |
| ) |
|
◆ get_mutex() [1/3]
Returns the mutex which (together with the global latch) protects the page shard which contains record locks for records from the given page.
- Parameters
-
[in] | page_id | The space_id and page_no of the page |
- Returns
- The mutex responsible for the shard containing the page
◆ get_mutex() [2/3]
Returns the mutex which (together with the global latch) protects the page shard which contains record locks for records from the given page.
- Parameters
-
[in] | page_id | The space_id and page_no of the page |
- Returns
- The mutex responsible for the shard containing the page
◆ get_mutex() [3/3]
Lock_mutex & locksys::Latches::Page_shards::get_mutex |
( |
const uint64_t |
cell_id | ) |
|
Returns the mutex which (together with the global latch) protects the page shard which contains record locks from given cell of hash tables.
- Parameters
-
[in] | cell_id | The cell_id of the hash table |
- Returns
- The mutex responsible for the shard containing the page
◆ get_shard()
size_t locksys::Latches::Page_shards::get_shard |
( |
const page_id_t & |
page_id | ) |
|
|
staticprivate |
Identifies the page shard which contains record locks for records from the given page.
- Parameters
-
[in] | page_id | The space_id and page_no of the page |
- Returns
- Integer in the range [0..lock_sys_t::SHARDS_COUNT)
◆ mutexes
Each shard is protected by a separate mutex.
Mutexes are padded to avoid false sharing issues with cache.
The documentation for this class was generated from the following files: