summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorgluh@gluh.mysql.r18.ru <>2003-04-23 18:00:07 +0500
committergluh@gluh.mysql.r18.ru <>2003-04-23 18:00:07 +0500
commite6fe7d1bed2bce353863b1c6b8833b1d58d39267 (patch)
tree630c0de1000122a73a4c374cfe78d36ff24860de /client
parent767f9a52f02d6b15a9ff73f934ce1da342a56b23 (diff)
downloadmariadb-git-e6fe7d1bed2bce353863b1c6b8833b1d58d39267.tar.gz
Task 761:'mysqlbinlog should not die when reading
unknown event'
Diffstat (limited to 'client')
-rw-r--r--client/mysqlbinlog.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index 1fe3dc86b35..75b875b4f4e 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -43,6 +43,7 @@ static const char* default_dbug_option = "d:t:o,/tmp/mysqlbinlog.trace";
void sql_print_error(const char *format, ...);
static bool one_database = 0;
+static bool force_opt= 0;
static const char* database;
static bool short_form = 0;
static ulonglong offset = 0;
@@ -73,6 +74,9 @@ static struct my_option my_long_options[] =
{"database", 'd', "List entries for just this database (local log only)",
(gptr*) &database, (gptr*) &database, 0, GET_STR_ALLOC, REQUIRED_ARG,
0, 0, 0, 0, 0, 0},
+ {"force-read", 'f', "Force reading unknown binlog events",
+ (gptr*) &force_opt, (gptr*) &force_opt, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
+ 0, 0},
{"help", '?', "Display this help and exit",
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
{"host", 'h', "Get the binlog from server", (gptr*) &host, (gptr*) &host,