diff options
author | Brandon Nesterenko <brandon.nesterenko@mariadb.com> | 2021-08-11 11:29:37 -0600 |
---|---|---|
committer | Brandon Nesterenko <brandon.nesterenko@mariadb.com> | 2021-08-23 13:57:38 -0600 |
commit | c622af26fca37fc7864e9526a60dbe059644d120 (patch) | |
tree | d9ed6be82f0da06e8b2ac68abea5988180289cd0 /sql/sql_repl.h | |
parent | 64f7dffcc7e0e69c31d9a36c2090a26300e57c4c (diff) | |
download | mariadb-git-10.7-MDEV-4989.tar.gz |
MDEV-4989: Support for GTID in mysqlbinlog10.7-MDEV-4989
New Feature:
============
This commit extends the mariadb-binlog capabilities to allow events
to be filtered by GTID ranges. More specifically, the following
capabilities are addressed:
1) GTIDs can be used to filter results on local binlog files
2) GTIDs can be used to filter results from remote servers
3) For a given GTID range, its start-position is exclusive and its
stop-position is inclusive
4) After the events have been written, the session server id and
domain id are reset to their former values
5) Output filtered by GTID ranges can be piped to the MariaDB client
To facilitate these features, the --start-position and --stop-position
arguments have been extended to additionally accept values formatted
as a list of GTID positions, e.g. `--start-position=0-1-0,1-2-55`
Reviewed By:
============
<TODO>
Diffstat (limited to 'sql/sql_repl.h')
-rw-r--r-- | sql/sql_repl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_repl.h b/sql/sql_repl.h index 95916e31abf..bfc35ea5456 100644 --- a/sql/sql_repl.h +++ b/sql/sql_repl.h @@ -57,7 +57,8 @@ struct LOAD_FILE_IO_CACHE : public IO_CACHE int log_loaded_block(IO_CACHE* file, uchar *Buffer, size_t Count); int init_replication_sys_vars(); -void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos, ushort flags); +void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos, ushort flags, + rpl_gtid *start_gtids, uint32 n_start_gtids); #ifdef HAVE_PSI_INTERFACE extern PSI_mutex_key key_LOCK_slave_state, key_LOCK_binlog_state; |