![]() |
MySQL 8.0.43
Source Code Documentation
|
Structure to store the GTID and timing information. More...
#include <rpl_gtid.h>
Public Member Functions | |
| Trx_monitoring_info () | |
| Constructor. More... | |
| Trx_monitoring_info (const Trx_monitoring_info &info) | |
| Copy constructor. More... | |
| Trx_monitoring_info & | operator= (const Trx_monitoring_info &)=default |
| void | clear () |
| Clear all fields of the structure. More... | |
| void | copy_to_ps_table (Sid_map *sid_map, char *gtid_arg, uint *gtid_length_arg, ulonglong *original_commit_ts_arg, ulonglong *immediate_commit_ts_arg, ulonglong *start_time_arg) const |
| Copies this transaction monitoring information to the output parameters passed as input, which are the corresponding fields in a replication performance schema table. More... | |
| void | copy_to_ps_table (Sid_map *sid_map, char *gtid_arg, uint *gtid_length_arg, ulonglong *original_commit_ts_arg, ulonglong *immediate_commit_ts_arg, ulonglong *start_time_arg, ulonglong *end_time_arg) const |
| Copies this transaction monitoring information to the output parameters passed as input, which are the corresponding fields in a replication performance schema table. More... | |
| void | copy_to_ps_table (Sid_map *sid_map, char *gtid_arg, uint *gtid_length_arg, ulonglong *original_commit_ts_arg, ulonglong *immediate_commit_ts_arg, ulonglong *start_time_arg, uint *last_transient_errno_arg, char *last_transient_errmsg_arg, uint *last_transient_errmsg_length_arg, ulonglong *last_transient_timestamp_arg, ulong *retries_count_arg) const |
| Copies this transaction monitoring information to the output parameters passed as input, which are the corresponding fields in a replication performance schema table. More... | |
| void | copy_to_ps_table (Sid_map *sid_map, char *gtid_arg, uint *gtid_length_arg, ulonglong *original_commit_ts_arg, ulonglong *immediate_commit_ts_arg, ulonglong *start_time_arg, ulonglong *end_time_arg, uint *last_transient_errno_arg, char *last_transient_errmsg_arg, uint *last_transient_errmsg_length_arg, ulonglong *last_transient_timestamp_arg, ulong *retries_count_arg) const |
| Copies this transaction monitoring information to the output parameters passed as input, which are the corresponding fields in a replication performance schema table. More... | |
Public Attributes | |
| Gtid | gtid |
| GTID being monitored. More... | |
| ulonglong | original_commit_timestamp |
| OCT of the GTID being monitored. More... | |
| ulonglong | immediate_commit_timestamp |
| ICT of the GTID being monitored. More... | |
| ulonglong | start_time |
| When the GTID transaction started to be processed. More... | |
| ulonglong | end_time |
| When the GTID transaction finished to be processed. More... | |
| bool | skipped |
| True if the GTID is being applied but will be skipped. More... | |
| bool | is_info_set |
| True when this information contains useful data. More... | |
| uint | last_transient_error_number |
| Number of the last transient error of this transaction. More... | |
| char | last_transient_error_message [MAX_SLAVE_ERRMSG] |
| Message of the last transient error of this transaction. More... | |
| ulonglong | last_transient_error_timestamp |
| Timestamp in microseconds of the last transient error of this transaction. More... | |
| ulong | transaction_retries |
| Number of times this transaction was retried. More... | |
| bool | is_retrying |
| True when the transaction is retrying. More... | |
| binary_log::transaction::compression::type | compression_type |
| The compression type. More... | |
| ulonglong | compressed_bytes |
| The compressed bytes. More... | |
| ulonglong | uncompressed_bytes |
| The uncompressed bytes. More... | |
Structure to store the GTID and timing information.
| Trx_monitoring_info::Trx_monitoring_info | ( | ) |
Constructor.
| Trx_monitoring_info::Trx_monitoring_info | ( | const Trx_monitoring_info & | info | ) |
Copy constructor.
| void Trx_monitoring_info::clear | ( | ) |
Clear all fields of the structure.
| void Trx_monitoring_info::copy_to_ps_table | ( | Sid_map * | sid_map, |
| char * | gtid_arg, | ||
| uint * | gtid_length_arg, | ||
| ulonglong * | original_commit_ts_arg, | ||
| ulonglong * | immediate_commit_ts_arg, | ||
| ulonglong * | start_time_arg | ||
| ) | const |
Copies this transaction monitoring information to the output parameters passed as input, which are the corresponding fields in a replication performance schema table.
| [in] | sid_map | The SID map for the GTID. |
| [out] | gtid_arg | GTID field in the PS table. |
| [out] | gtid_length_arg | Length of the GTID as string. |
| [out] | original_commit_ts_arg | The original commit timestamp. |
| [out] | immediate_commit_ts_arg | The immediate commit timestamp. |
| [out] | start_time_arg | The start time field. |
| void Trx_monitoring_info::copy_to_ps_table | ( | Sid_map * | sid_map, |
| char * | gtid_arg, | ||
| uint * | gtid_length_arg, | ||
| ulonglong * | original_commit_ts_arg, | ||
| ulonglong * | immediate_commit_ts_arg, | ||
| ulonglong * | start_time_arg, | ||
| uint * | last_transient_errno_arg, | ||
| char * | last_transient_errmsg_arg, | ||
| uint * | last_transient_errmsg_length_arg, | ||
| ulonglong * | last_transient_timestamp_arg, | ||
| ulong * | retries_count_arg | ||
| ) | const |
Copies this transaction monitoring information to the output parameters passed as input, which are the corresponding fields in a replication performance schema table.
| [in] | sid_map | The SID map for the GTID. |
| [out] | gtid_arg | GTID field in the PS table. |
| [out] | gtid_length_arg | Length of the GTID as string. |
| [out] | original_commit_ts_arg | The original commit timestamp. |
| [out] | immediate_commit_ts_arg | The immediate commit timestamp. |
| [out] | start_time_arg | The start time field. |
| [out] | last_transient_errno_arg | The last transient error number. |
| [out] | last_transient_errmsg_arg | The last transient error message. |
| [out] | last_transient_errmsg_length_arg | Length of the last transient error message. |
| [out] | last_transient_timestamp_arg | The last transient error timestamp. |
| [out] | retries_count_arg | The total number of retries for this transaction. |
| void Trx_monitoring_info::copy_to_ps_table | ( | Sid_map * | sid_map, |
| char * | gtid_arg, | ||
| uint * | gtid_length_arg, | ||
| ulonglong * | original_commit_ts_arg, | ||
| ulonglong * | immediate_commit_ts_arg, | ||
| ulonglong * | start_time_arg, | ||
| ulonglong * | end_time_arg | ||
| ) | const |
Copies this transaction monitoring information to the output parameters passed as input, which are the corresponding fields in a replication performance schema table.
| [in] | sid_map | The SID map for the GTID. |
| [out] | gtid_arg | GTID field in the PS table. |
| [out] | gtid_length_arg | Length of the GTID as string. |
| [out] | original_commit_ts_arg | The original commit timestamp. |
| [out] | immediate_commit_ts_arg | The immediate commit timestamp. |
| [out] | start_time_arg | The start time field. |
| [out] | end_time_arg | The end time field. This can be null when the PS table fields are for the "still processing" information. |
| void Trx_monitoring_info::copy_to_ps_table | ( | Sid_map * | sid_map, |
| char * | gtid_arg, | ||
| uint * | gtid_length_arg, | ||
| ulonglong * | original_commit_ts_arg, | ||
| ulonglong * | immediate_commit_ts_arg, | ||
| ulonglong * | start_time_arg, | ||
| ulonglong * | end_time_arg, | ||
| uint * | last_transient_errno_arg, | ||
| char * | last_transient_errmsg_arg, | ||
| uint * | last_transient_errmsg_length_arg, | ||
| ulonglong * | last_transient_timestamp_arg, | ||
| ulong * | retries_count_arg | ||
| ) | const |
Copies this transaction monitoring information to the output parameters passed as input, which are the corresponding fields in a replication performance schema table.
| [in] | sid_map | The SID map for the GTID. |
| [out] | gtid_arg | GTID field in the PS table. |
| [out] | gtid_length_arg | Length of the GTID as string. |
| [out] | original_commit_ts_arg | The original commit timestamp. |
| [out] | immediate_commit_ts_arg | The immediate commit timestamp. |
| [out] | start_time_arg | The start time field. |
| [out] | end_time_arg | The end time field. This can be null when the PS table fields are for the "still processing" information. |
| [out] | last_transient_errno_arg | The last transient error number. |
| [out] | last_transient_errmsg_arg | The last transient error message. |
| [out] | last_transient_errmsg_length_arg | Length of the last transient error message. |
| [out] | last_transient_timestamp_arg | The last transient error timestamp. |
| [out] | retries_count_arg | The total number of retries for this transaction. |
|
default |
| ulonglong Trx_monitoring_info::compressed_bytes |
The compressed bytes.
| binary_log::transaction::compression::type Trx_monitoring_info::compression_type |
The compression type.
| ulonglong Trx_monitoring_info::end_time |
When the GTID transaction finished to be processed.
| Gtid Trx_monitoring_info::gtid |
GTID being monitored.
| ulonglong Trx_monitoring_info::immediate_commit_timestamp |
ICT of the GTID being monitored.
| bool Trx_monitoring_info::is_info_set |
True when this information contains useful data.
| bool Trx_monitoring_info::is_retrying |
True when the transaction is retrying.
| char Trx_monitoring_info::last_transient_error_message[MAX_SLAVE_ERRMSG] |
Message of the last transient error of this transaction.
| uint Trx_monitoring_info::last_transient_error_number |
Number of the last transient error of this transaction.
| ulonglong Trx_monitoring_info::last_transient_error_timestamp |
Timestamp in microseconds of the last transient error of this transaction.
| ulonglong Trx_monitoring_info::original_commit_timestamp |
OCT of the GTID being monitored.
| bool Trx_monitoring_info::skipped |
True if the GTID is being applied but will be skipped.
| ulonglong Trx_monitoring_info::start_time |
When the GTID transaction started to be processed.
| ulong Trx_monitoring_info::transaction_retries |
Number of times this transaction was retried.
| ulonglong Trx_monitoring_info::uncompressed_bytes |
The uncompressed bytes.