MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Wait_for_flush Class Reference

#include <table.h>

Inheritance diagram for Wait_for_flush:
Collaboration diagram for Wait_for_flush:

Public Member Functions

 Wait_for_flush (MDL_context *ctx_arg, TABLE_SHARE *share_arg, uint deadlock_weight_arg)
MDL_contextget_ctx () const
virtual bool accept_visitor (MDL_wait_for_graph_visitor *dvisitor)
virtual uint get_deadlock_weight () const

Public Attributes

Wait_for_flushnext_in_share
Wait_for_flush ** prev_in_share

Additional Inherited Members

- Public Types inherited from MDL_wait_for_subgraph
enum  enum_deadlock_weight { DEADLOCK_WEIGHT_DML = 0, DEADLOCK_WEIGHT_DDL = 100 }

Detailed Description

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.

Definition at line 546 of file table.h.

Member Function Documentation

bool Wait_for_flush::accept_visitor ( MDL_wait_for_graph_visitor gvisitor)
virtual

Traverse portion of wait-for graph which is reachable through edge represented by this flush ticket in search for deadlocks.

Return values
TRUEA deadlock is found. A victim is remembered by the visitor.
FALSESuccess, no deadlocks.

Implements MDL_wait_for_subgraph.

Definition at line 3456 of file table.cc.

Here is the call graph for this function:

Member Data Documentation

Wait_for_flush* Wait_for_flush::next_in_share

Pointers for participating in the list of waiters for table share.

Definition at line 567 of file table.h.


The documentation for this class was generated from the following files: