MySQL 8.0.40
Source Code Documentation
|
Class representing the fact that some thread waits for table share to be flushed. More...
#include <table.h>
Public Member Functions | |
Wait_for_flush (MDL_context *ctx_arg, TABLE_SHARE *share_arg, uint deadlock_weight_arg) | |
MDL_context * | get_ctx () const |
bool | accept_visitor (MDL_wait_for_graph_visitor *dvisitor) override |
Traverse portion of wait-for graph which is reachable through edge represented by this flush ticket in search for deadlocks. More... | |
uint | get_deadlock_weight () const override |
Public Member Functions inherited from MDL_wait_for_subgraph | |
virtual | ~MDL_wait_for_subgraph () |
Public Attributes | |
Wait_for_flush * | next_in_share |
Pointers for participating in the list of waiters for table share. More... | |
Wait_for_flush ** | prev_in_share |
Private Attributes | |
MDL_context * | m_ctx |
TABLE_SHARE * | m_share |
uint | m_deadlock_weight |
Additional Inherited Members | |
Static Public Attributes inherited from MDL_wait_for_subgraph | |
static const uint | DEADLOCK_WEIGHT_CO = 0 |
static const uint | DEADLOCK_WEIGHT_DML = 25 |
static const uint | DEADLOCK_WEIGHT_ULL = 50 |
static const uint | DEADLOCK_WEIGHT_DDL = 100 |
Class representing the fact that some thread waits for table share to be flushed.
Is used to represent information about such waits in MDL deadlock detector.
|
inline |
|
overridevirtual |
Traverse portion of wait-for graph which is reachable through edge represented by this flush ticket in search for deadlocks.
true | A deadlock is found. A victim is remembered by the visitor. |
false | Success, no deadlocks. |
Implements MDL_wait_for_subgraph.
|
inline |
|
overridevirtual |
Implements MDL_wait_for_subgraph.
|
private |
|
private |
|
private |
Wait_for_flush* Wait_for_flush::next_in_share |
Pointers for participating in the list of waiters for table share.
Wait_for_flush** Wait_for_flush::prev_in_share |