Skip to content

Commit 51b248c

Browse files
author
Jan Lindström
committed
MDEV-11879: Duplicate option innochecksum -l (--log, --leaf)
Move --leaf under -e to avoid duplicate option and retain -l for --log (to maintain compatibility with MySQL 5.7).
1 parent 6495806 commit 51b248c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extra/innochecksum.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ static struct my_option innochecksum_options[] = {
13811381
{"log", 'l', "log output.",
13821382
&log_filename, &log_filename, 0,
13831383
GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1384-
{"leaf", 'l', "Examine leaf index pages",
1384+
{"leaf", 'e', "Examine leaf index pages",
13851385
&do_leaf, &do_leaf, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
13861386
{"merge", 'm', "leaf page count if merge given number of consecutive pages",
13871387
&n_merge, &n_merge, 0, GET_ULONG, REQUIRED_ARG, 0, 0, (longlong)10L, 0, 1, 0},
@@ -1411,7 +1411,7 @@ static void usage(void)
14111411
printf("Usage: %s [-c] [-s <start page>] [-e <end page>] "
14121412
"[-p <page>] [-v] [-a <allow mismatches>] [-n] "
14131413
"[-C <strict-check>] [-w <write>] [-S] [-D <page type dump>] "
1414-
"[-l <log>] <filename or [-]>\n", my_progname);
1414+
"[-l <log>] [-e] <filename or [-]>\n", my_progname);
14151415
printf("See " REFMAN "innochecksum.html for usage hints.\n");
14161416
my_print_help(innochecksum_options);
14171417
my_print_variables(innochecksum_options);

0 commit comments

Comments
 (0)