Public Member Functions |
void | clear () |
| Set both components to 0.
|
void | set (rpl_sidno sno, rpl_gno gtidno) |
bool | empty () const |
int | to_string (const rpl_sid &sid, char *buf) const |
int | to_string (const Sid_map *sid_map, char *buf) const |
bool | equals (const Gtid &other) const |
| Returns true if this Gtid has the same sid and gno as 'other'.
|
enum_return_status | parse (Sid_map *sid_map, const char *text) |
void | print (const Sid_map *sid_map) const |
| Debug only: print this Gtid to stdout.
|
void | dbug_print (const Sid_map *sid_map, const char *text="") const |
| Print this Gtid to the trace file if debug is enabled; no-op otherwise.
|
Static Public Member Functions |
static bool | is_valid (const char *text) |
Public Attributes |
rpl_sidno | sidno |
| SIDNO of this Gtid.
|
rpl_gno | gno |
| GNO of this Gtid.
|
Static Public Attributes |
static const int | MAX_TEXT_LENGTH = Uuid::TEXT_LENGTH + 1 + MAX_GNO_TEXT_LENGTH |
Holds information about a GTID: the sidno and the gno.
This is a POD. It has to be a POD because it is part of Gtid_specification, which has to be a POD because it is used in THD::variables.