Skip to content

rpl_data_structures

Georg Richter edited this page Oct 22, 2018 · 8 revisions

Binlog/Replication API data structures

Structures and type definitions for Binglog/Replication API are defined in source file include/mariadb_rpl.h.

MARIADB_STRING

MARIADB_STRING is a simple structure (same as MYSQL_STRING and MYSQL_LEX_STRING) which stores a string together with its length.

typedef struct {
  char *str;
  size_t length;
} MARIADB_STRING;

MARIADB_GTID

MARIADB_GTID is used to store the global transaction id. The global transaction id is defined by three numbers: The domain id, the server id and the sequence number.

typedef struct st_mariadb_gtid {
  unsigned int domain_id;
  unsigned int server_id;
  unsigned long long sequence_nr;
} MARIADB_GTID;
Clone this wiki locally