MySQL 8.0.40
Source Code Documentation
|
A derived from THD::Attachable_trx class allows updates in the attachable transaction. More...
Public Member Functions | |
bool | is_read_only () const override |
Attachable_trx_rw (THD *thd) | |
Public Member Functions inherited from THD::Attachable_trx | |
Attachable_trx (THD *thd, Attachable_trx *prev_trx) | |
virtual | ~Attachable_trx () |
Attachable_trx * | get_prev_attachable_trx () const |
Private Member Functions | |
Attachable_trx_rw (const Attachable_trx_rw &) | |
Attachable_trx_rw & | operator= (const Attachable_trx_rw &) |
Additional Inherited Members | |
Protected Attributes inherited from THD::Attachable_trx | |
THD * | m_thd |
THD instance. More... | |
enum_reset_lex | m_reset_lex |
Attachable_trx * | m_prev_attachable_trx |
Attachable_trx which was active for the THD before when this transaction was started (NULL in most cases). More... | |
Transaction_state | m_trx_state |
Transaction state data. More... | |
A derived from THD::Attachable_trx class allows updates in the attachable transaction.
Callers of the class methods must make sure the attachable_rw won't cause deadlock with the main transaction. The destructor does not invoke ha_commit_{stmt,trans} nor ha_rollback_trans on purpose. Burden to terminate the read-write instance also lies on the caller! In order to use this interface it MUST prove that no side effect to the global transaction state can be inflicted by a chosen method.
This class is being used only by class Gtid_table_access_context by replication and by dd::info_schema::Table_statistics.
|
explicit |
|
private |
|
inlineoverridevirtual |
Reimplemented from THD::Attachable_trx.
|
private |