![]() |
MySQL 26.7.0
Source Code Documentation
|
Managed event. More...
#include <managed_event.h>
Public Types | |
| using | Log_event_ptr = std::shared_ptr< Log_event > |
Public Member Functions | |
| Managed_event ()=default | |
| Construct. More... | |
| Managed_event (const Log_event_ptr &ev, bool ev_owns_memory) | |
| Construct from ev. More... | |
| Log_event_ptr & | get_event () |
| Internal event accessor. More... | |
| const Log_event_ptr & | get_event () const |
| Internal event accessor, const. More... | |
| void | set_last_in_transaction (bool is_last) |
| Marks whether this fetched event is the last event of transaction. More... | |
| bool | is_last_in_transaction () const |
| Returns whether this fetched event is the last event of transaction. More... | |
| operator bool () const noexcept | |
| Returns true if Managed_event manages an event, false otherwise. More... | |
Private Attributes | |
| Log_event_ptr | m_event |
| Internal event pointer. More... | |
| bool | m_is_last_in_transaction {false} |
| True if this fetched event is the transaction terminal event. More... | |
Managed event.
For now, it contains functionality to pass memory ownership between CSA threads.
| using mysql::csa::Managed_event::Log_event_ptr = std::shared_ptr<Log_event> |
|
default |
Construct.
| mysql::csa::Managed_event::Managed_event | ( | const Log_event_ptr & | ev, |
| bool | ev_owns_memory | ||
| ) |
Construct from ev.
| ev | Pointer to copy |
| ev_owns_memory | True if ev exclusively owns log event memory |
| Managed_event::Log_event_ptr & mysql::csa::Managed_event::get_event | ( | ) |
Internal event accessor.
| const Managed_event::Log_event_ptr & mysql::csa::Managed_event::get_event | ( | ) | const |
Internal event accessor, const.
| bool mysql::csa::Managed_event::is_last_in_transaction | ( | ) | const |
Returns whether this fetched event is the last event of transaction.
|
explicitnoexcept |
Returns true if Managed_event manages an event, false otherwise.
| void mysql::csa::Managed_event::set_last_in_transaction | ( | bool | is_last | ) |
Marks whether this fetched event is the last event of transaction.
|
private |
Internal event pointer.
|
private |
True if this fetched event is the transaction terminal event.