From 6cdb10b96c0ebb9c1a32b0d4f27c4ac691c881cb Mon Sep 17 00:00:00 2001 From: Andrei Elkin Date: Tue, 14 Sep 2021 20:28:03 +0300 Subject: --gtid-strict-mode option is introduced, ON by default; revert it with --skip- prefix. --- client/mysqlbinlog.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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 " -- cgit v1.2.1