|
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/2]
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/2]
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_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: