summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Elkin <andrei.elkin@mariadb.com>2021-09-14 20:28:03 +0300
committerBrandon Nesterenko <brandon.nesterenko@mariadb.com>2021-11-01 11:01:34 -0600
commit6cdb10b96c0ebb9c1a32b0d4f27c4ac691c881cb (patch)
tree0ecc389d063508dcd5b296083097f8aa4e3a1a29
parentf8e9e925322bf11eabc58e3ccd13b963fb98753e (diff)
downloadmariadb-git-6cdb10b96c0ebb9c1a32b0d4f27c4ac691c881cb.tar.gz
--gtid-strict-mode option is introduced, ON by default; revert it with --skip- prefix.
-rw-r--r--client/mysqlbinlog.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index a766e46b79f..20a21435189 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -128,6 +128,7 @@ static my_bool print_row_count_used= 0, print_row_event_positions_used= 0;
static my_bool debug_info_flag, debug_check_flag;
static my_bool force_if_open_opt= 1;
static my_bool opt_raw_mode= 0, opt_stop_never= 0;
+my_bool opt_gtid_strict_mode= true;
static ulong opt_stop_never_slave_server_id= 0;
static my_bool opt_verify_binlog_checksum= 1;
static ulonglong offset = 0;
@@ -1705,6 +1706,12 @@ static struct my_option my_options[] =
"allow users to receive events after their current state.",
&start_pos_str, &start_pos_str, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0,
0, 0, 0},
+ {"gtid-strict-mode", 0, "Process binlog according to gtid-strict-mode "
+ "specification. The start, stop positions are verified to satisfy "
+ "start < stop comparison condition. Sequence numbers of any gtid domain "
+ "must comprise monotically growing sequence",
+ &opt_gtid_strict_mode, &opt_gtid_strict_mode, 0,
+ GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
{"stop-datetime", OPT_STOP_DATETIME,
"Stop reading the binlog at first event having a datetime equal or "
"posterior to the argument; the argument must be a date and time "