Skip to content

Commit a722ee8

Browse files
committed
Merge 10.5 into 10.6
2 parents 5727d56 + 9c7a456 commit a722ee8

File tree

82 files changed

+1747
-927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1747
-927
lines changed

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,12 @@ sql/lex_hash.h
197197
sql/mysql_tzinfo_to_sql
198198
sql/mysqld
199199
sql/sql_builtin.cc
200-
sql/sql_yacc.cc
201-
sql/sql_yacc.hh
202-
sql/sql_yacc_ora.cc
203-
sql/sql_yacc_ora.hh
204-
sql/sql_yacc_ora.yy
200+
sql/yy_mariadb.cc
201+
sql/yy_mariadb.hh
202+
sql/yy_mariadb.yy
203+
sql/yy_oracle.cc
204+
sql/yy_oracle.hh
205+
sql/yy_oracle.yy
205206
storage/heap/hp_test1
206207
storage/heap/hp_test2
207208
storage/maria/aria_chk

cmake/make_dist.cmake.in

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ IF(NOT GIT_EXECUTABLE)
125125
ENDIF()
126126

127127
# Copy bison output
128-
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/sql_yacc.hh
129-
${PACKAGE_DIR}/sql/sql_yacc.hh COPYONLY)
130-
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/sql_yacc.cc
131-
${PACKAGE_DIR}/sql/sql_yacc.cc COPYONLY)
128+
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/yy_mariadb.hh
129+
${PACKAGE_DIR}/sql/yy_mariadb.hh COPYONLY)
130+
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/yy_mariadb.cc
131+
${PACKAGE_DIR}/sql/yy_mariadb.cc COPYONLY)
132132
# Copy bison output
133-
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/sql_yacc_ora.hh
134-
${PACKAGE_DIR}/sql/sql_yacc_ora.hh COPYONLY)
135-
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/sql_yacc_ora.cc
136-
${PACKAGE_DIR}/sql/sql_yacc_ora.cc COPYONLY)
133+
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/yy_oracle.hh
134+
${PACKAGE_DIR}/sql/yy_oracle.hh COPYONLY)
135+
CONFIGURE_FILE(${CMAKE_BINARY_DIR}/sql/yy_oracle.cc
136+
${PACKAGE_DIR}/sql/yy_oracle.cc COPYONLY)
137137

138138
# Add documentation, if user has specified where to find them
139139
IF(MYSQL_DOCS_LOCATION)

cmake/os/WindowsCache.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ SET(HAVE_SNAPPY_H CACHE INTERNAL "")
321321
SET(HAVE_SCHED_GETCPU CACHE INTERNAL "")
322322
SET(HAVE_PTHREAD_THREADID_NP CACHE INTERNAL "")
323323
SET(HAVE_SYS_GETTID CACHE INTERNAL "")
324+
SET(HAVE_GETTID CACHE INTERNAL "")
324325
SET(HAVE_INTEGER_PTHREAD_SELF CACHE INTERNAL "")
325326
SET(HAVE_PTHREAD_GETTHREADID_NP CACHE INTERNAL "")
326327
SET(HAVE_TIMER_DELETE CACHE INTERNAL "")

debian/additions/innotop/innotop

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ sub parse_status_text {
466466
# too many locks to print, the output might be truncated)
467467

468468
my $time_text;
469-
if ( ($mysqlversion =~ /^5\.[67]\./) || ($mysqlversion =~ /^10\.[012]\./) ) {
469+
if ( ($mysqlversion =~ /^5\.[67]\./) || ($mysqlversion =~ /^10\.[0-9]\./) ) {
470470
( $time_text ) = $fulltext =~ m/^([0-9-]* [0-9:]*) [0-9a-fx]* INNODB MONITOR OUTPUT/m;
471471
$innodb_data{'ts'} = [ parse_innodb_timestamp_56( $time_text ) ];
472472
} else {
@@ -634,7 +634,7 @@ sub parse_fk_section {
634634
return 0 unless $fulltext;
635635

636636
my ( $ts, $type );
637-
if ( ($mysqlversion =~ /^5.[67]\./) || ($mysqlversion =~ /^10.[012]\./) ) {
637+
if ( ($mysqlversion =~ /^5.[67]\./) || ($mysqlversion =~ /^10.[0-9]\./) ) {
638638
( $ts, $type ) = $fulltext =~ m/^([0-9-]* [0-9:]*)\s[0-9a-fx]*\s+(\w+)/m;
639639
$section->{'ts'} = [ parse_innodb_timestamp_56( $ts ) ];
640640
} else {
@@ -894,7 +894,7 @@ sub parse_dl_section {
894894
my ( $ts ) = $fulltext =~ m/^$s$/m;
895895
return 0 unless $ts;
896896

897-
if ( ($mysqlversion =~ /^5\.[67]\./) || ($mysqlversion =~ /^10\.[012]\./) ) {
897+
if ( ($mysqlversion =~ /^5\.[67]\./) || ($mysqlversion =~ /^10\.[0-9]\./) ) {
898898
$dl->{'ts'} = [ parse_innodb_timestamp_56( $ts ) ];
899899
}
900900
else {
@@ -12065,7 +12065,7 @@ This data is from the TRANSACTIONS section of SHOW INNODB STATUS.
1206512065
1206612066
=item IO_THREADS
1206712067
12068-
This data is from the list of threads in the the FILE I/O section of SHOW INNODB
12068+
This data is from the list of threads in the FILE I/O section of SHOW INNODB
1206912069
STATUS.
1207012070
1207112071
=item INNODB_LOCKS

debian/additions/innotop/innotop.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,7 @@ the processlist.
20482048
This data is from the \s-1TRANSACTIONS\s0 section of \s-1SHOW INNODB STATUS.\s0
20492049
.IP "\s-1IO_THREADS\s0" 4
20502050
.IX Item "IO_THREADS"
2051-
This data is from the list of threads in the the \s-1FILE I/O\s0 section of \s-1SHOW INNODB
2051+
This data is from the list of threads in the \s-1FILE I/O\s0 section of \s-1SHOW INNODB
20522052
STATUS.\s0
20532053
.IP "\s-1INNODB_LOCKS\s0" 4
20542054
.IX Item "INNODB_LOCKS"

extra/mariabackup/innobackupex.cc

Lines changed: 33 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ ibx_mode_t ibx_mode = IBX_MODE_BACKUP;
216216

217217
static struct my_option ibx_long_options[] =
218218
{
219-
{"version", 'v', "print xtrabackup version information",
219+
{"version", 'v', "print version information",
220220
(uchar *) &opt_ibx_version, (uchar *) &opt_ibx_version, 0,
221221
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
222222

@@ -259,12 +259,11 @@ static struct my_option ibx_long_options[] =
259259
(uchar *) &opt_ibx_slave_info, (uchar *) &opt_ibx_slave_info, 0,
260260
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
261261

262-
{"incremental", OPT_INCREMENTAL, "This option tells xtrabackup to "
263-
"create an incremental backup, rather than a full one. It is passed "
264-
"to the xtrabackup child process. When this option is specified, "
262+
{"incremental", OPT_INCREMENTAL,
263+
"Create an incremental backup, rather than a full one. When this option is specified, "
265264
"either --incremental-lsn or --incremental-basedir can also be given. "
266-
"If neither option is given, option --incremental-basedir is passed "
267-
"to xtrabackup by default, set to the first timestamped backup "
265+
"If neither option is given, option --incremental-basedir is used "
266+
"by default, set to the first timestamped backup "
268267
"directory in the backup base directory.",
269268
(uchar *) &opt_ibx_incremental, (uchar *) &opt_ibx_incremental, 0,
270269
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
@@ -379,14 +378,14 @@ static struct my_option ibx_long_options[] =
379378
{"incremental-history-name", OPT_INCREMENTAL_HISTORY_NAME,
380379
"This option specifies the name of the backup series stored in the "
381380
"PERCONA_SCHEMA.xtrabackup_history history record to base an "
382-
"incremental backup on. Xtrabackup will search the history table "
381+
"incremental backup on. Backup will search the history table "
383382
"looking for the most recent (highest innodb_to_lsn), successful "
384383
"backup in the series and take the to_lsn value to use as the "
385384
"starting lsn for the incremental backup. This will be mutually "
386385
"exclusive with --incremental-history-uuid, --incremental-basedir "
387386
"and --incremental-lsn. If no valid lsn can be found (no series by "
388-
"that name, no successful backups by that name) xtrabackup will "
389-
"return with an error. It is used with the --incremental option.",
387+
"that name, no successful backups by that name), "
388+
"an error will be returned. It is used with the --incremental option.",
390389
(uchar*) &opt_ibx_incremental_history_name,
391390
(uchar*) &opt_ibx_incremental_history_name, 0, GET_STR,
392391
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
@@ -396,8 +395,8 @@ static struct my_option ibx_long_options[] =
396395
"stored in the PERCONA_SCHEMA.xtrabackup_history to base an "
397396
"incremental backup on. --incremental-history-name, "
398397
"--incremental-basedir and --incremental-lsn. If no valid lsn can be "
399-
"found (no success record with that uuid) xtrabackup will return "
400-
"with an error. It is used with the --incremental option.",
398+
"found (no success record with that uuid), an error will be returned."
399+
" It is used with the --incremental option.",
401400
(uchar*) &opt_ibx_incremental_history_uuid,
402401
(uchar*) &opt_ibx_incremental_history_uuid, 0, GET_STR,
403402
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
@@ -426,7 +425,7 @@ static struct my_option ibx_long_options[] =
426425
{"include", OPT_INCLUDE,
427426
"This option is a regular expression to be matched against table "
428427
"names in databasename.tablename format. It is passed directly to "
429-
"xtrabackup's --tables option. See the xtrabackup documentation for "
428+
"--tables option. See the documentation for "
430429
"details.",
431430
(uchar*) &opt_ibx_include,
432431
(uchar*) &opt_ibx_include, 0, GET_STR,
@@ -476,12 +475,6 @@ static struct my_option ibx_long_options[] =
476475
(uchar*) &opt_ibx_lock_wait_threshold, 0, GET_UINT,
477476
REQUIRED_ARG, 60, 0, 0, 0, 0, 0},
478477

479-
{"debug-sleep-before-unlock", OPT_DEBUG_SLEEP_BEFORE_UNLOCK,
480-
"This is a debug-only option used by the XtraBackup test suite.",
481-
(uchar*) &opt_ibx_debug_sleep_before_unlock,
482-
(uchar*) &opt_ibx_debug_sleep_before_unlock, 0, GET_UINT,
483-
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
484-
485478
{"safe-slave-backup-timeout", OPT_SAFE_SLAVE_BACKUP_TIMEOUT,
486479
"How many seconds --safe-slave-backup should wait for "
487480
"Slave_open_temp_tables to become zero. (default 300)",
@@ -494,22 +487,20 @@ static struct my_option ibx_long_options[] =
494487
We put them here with only purpose for them to showup in
495488
innobackupex --help output */
496489

497-
{"close_files", OPT_CLOSE_FILES, "Do not keep files opened. This "
498-
"option is passed directly to xtrabackup. Use at your own risk.",
490+
{"close_files", OPT_CLOSE_FILES, "Do not keep files opened."
491+
" Use at your own risk.",
499492
(uchar*) &ibx_xb_close_files, (uchar*) &ibx_xb_close_files, 0,
500493
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
501494

502-
{"compress", OPT_COMPRESS, "This option instructs xtrabackup to "
503-
"compress backup copies of InnoDB data files. It is passed directly "
504-
"to the xtrabackup child process. Try 'xtrabackup --help' for more "
505-
"details.", (uchar*) &ibx_xtrabackup_compress_alg,
495+
{"compress", OPT_COMPRESS, "This option instructs backup to "
496+
"compress backup copies of InnoDB data files."
497+
, (uchar*) &ibx_xtrabackup_compress_alg,
506498
(uchar*) &ibx_xtrabackup_compress_alg, 0,
507499
GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
508500

509501
{"compress-threads", OPT_COMPRESS_THREADS,
510502
"This option specifies the number of worker threads that will be used "
511-
"for parallel compression. It is passed directly to the xtrabackup "
512-
"child process. Try 'xtrabackup --help' for more details.",
503+
"for parallel compression.",
513504
(uchar*) &ibx_xtrabackup_compress_threads,
514505
(uchar*) &ibx_xtrabackup_compress_threads,
515506
0, GET_UINT, REQUIRED_ARG, 1, 1, UINT_MAX, 0, 0, 0},
@@ -520,17 +511,15 @@ static struct my_option ibx_long_options[] =
520511
(uchar*) &ibx_xtrabackup_compress_chunk_size,
521512
0, GET_ULL, REQUIRED_ARG, (1 << 16), 1024, ULONGLONG_MAX, 0, 0, 0},
522513

523-
{"export", OPT_EXPORT, "This option is passed directly to xtrabackup's "
524-
"--export option. It enables exporting individual tables for import "
525-
"into another server. See the xtrabackup documentation for details.",
514+
{"export", OPT_EXPORT, " enables exporting individual tables for import "
515+
"into another server.",
526516
(uchar*) &ibx_xtrabackup_export, (uchar*) &ibx_xtrabackup_export,
527517
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
528518

529519
{"extra-lsndir", OPT_EXTRA_LSNDIR, "This option specifies the "
530520
"directory in which to save an extra copy of the "
531521
"\"xtrabackup_checkpoints\" file. The option accepts a string "
532-
"argument. It is passed directly to xtrabackup's --extra-lsndir "
533-
"option. See the xtrabackup documentation for details.",
522+
"argument.",
534523
(uchar*) &ibx_xtrabackup_extra_lsndir,
535524
(uchar*) &ibx_xtrabackup_extra_lsndir,
536525
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
@@ -552,7 +541,7 @@ static struct my_option ibx_long_options[] =
552541
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
553542

554543
{"incremental-force-scan", OPT_INCREMENTAL_FORCE_SCAN,
555-
"This options tells xtrabackup to perform full scan of data files "
544+
"Perform full scan of data files "
556545
"for taking an incremental backup even if full changed page bitmap "
557546
"data is available to enable the backup without the full scan.",
558547
(uchar*)&ibx_xtrabackup_incremental_force_scan,
@@ -578,34 +567,30 @@ static struct my_option ibx_long_options[] =
578567
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
579568

580569
{"parallel", OPT_PARALLEL, "On backup, this option specifies the "
581-
"number of threads the xtrabackup child process should use to back "
582-
"up files concurrently. The option accepts an integer argument. It "
583-
"is passed directly to xtrabackup's --parallel option. See the "
584-
"xtrabackup documentation for details.",
570+
"number of threads to use to back "
571+
"up files concurrently. The option accepts an integer argument.",
585572
(uchar*) &ibx_xtrabackup_parallel, (uchar*) &ibx_xtrabackup_parallel,
586573
0, GET_INT, REQUIRED_ARG, 1, 1, INT_MAX, 0, 0, 0},
587574

588575

589576
{"stream", OPT_STREAM, "This option specifies the format in which to "
590577
"do the streamed backup. The option accepts a string argument. The "
591578
"backup will be done to STDOUT in the specified format. Currently, "
592-
"the only supported formats are tar and mbstream/xbstream. This "
593-
"option is passed directly to xtrabackup's --stream option.",
579+
"the only supported formats are tar and mbstream/xbstream.",
594580
(uchar*) &ibx_xtrabackup_stream_str,
595581
(uchar*) &ibx_xtrabackup_stream_str, 0, GET_STR,
596582
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
597583

598584
{"tables-file", OPT_TABLES_FILE, "This option specifies the file in "
599585
"which there are a list of names of the form database. The option "
600-
"accepts a string argument.table, one per line. The option is passed "
601-
"directly to xtrabackup's --tables-file option.",
586+
"accepts a string argument.table, one per line.",
602587
(uchar*) &ibx_xtrabackup_tables_file,
603588
(uchar*) &ibx_xtrabackup_tables_file,
604589
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
605590

606591
{"throttle", OPT_THROTTLE, "This option specifies a number of I/O "
607592
"operations (pairs of read+write) per second. It accepts an integer "
608-
"argument. It is passed directly to xtrabackup's --throttle option.",
593+
"argument.",
609594
(uchar*) &ibx_xtrabackup_throttle, (uchar*) &ibx_xtrabackup_throttle,
610595
0, GET_LONG, REQUIRED_ARG, 0, 0, LONG_MAX, 0, 1, 0},
611596

@@ -617,11 +602,10 @@ static struct my_option ibx_long_options[] =
617602
0, 0, 0, 0, 0, 0},
618603

619604
{"use-memory", OPT_USE_MEMORY, "This option accepts a string argument "
620-
"that specifies the amount of memory in bytes for xtrabackup to use "
605+
"that specifies the amount of memory in bytes to use "
621606
"for crash recovery while preparing a backup. Multiples are supported "
622607
"providing the unit (e.g. 1MB, 1GB). It is used only with the option "
623-
"--apply-log. It is passed directly to xtrabackup's --use-memory "
624-
"option. See the xtrabackup documentation for details.",
608+
"--apply-log.",
625609
(uchar*) &ibx_xtrabackup_use_memory,
626610
(uchar*) &ibx_xtrabackup_use_memory,
627611
0, GET_LL, REQUIRED_ARG, 100*1024*1024L, 1024*1024L, LONGLONG_MAX, 0,
@@ -643,7 +627,7 @@ static struct my_option ibx_long_options[] =
643627

644628
static void usage(void)
645629
{
646-
puts("Open source backup tool for InnoDB and XtraDB\n\
630+
puts("Open source backup tool\n\
647631
\n\
648632
Copyright (C) 2009-2015 Percona LLC and/or its affiliates.\n\
649633
Portions Copyright (C) 2000, 2011, MySQL AB & Innobase Oy. All Rights Reserved.\n\
@@ -694,7 +678,7 @@ innobackupex [--decompress]\n\
694678
\n\
695679
DESCRIPTION\n\
696680
\n\
697-
The first command line above makes a hot backup of a MySQL database.\n\
681+
The first command line above makes a hot backup of a database.\n\
698682
By default it creates a backup directory (named by the current date\n\
699683
and time) in the given backup root directory. With the --no-timestamp\n\
700684
option it does not create a time-stamped backup directory, but it puts\n\
@@ -704,22 +688,18 @@ indexes in all databases or in all of the databases specified with the\n\
704688
--databases option. The created backup contains .frm, .MRG, .MYD,\n\
705689
.MYI, .MAD, .MAI, .TRG, .TRN, .ARM, .ARZ, .CSM, CSV, .opt, .par, and\n\
706690
InnoDB data and log files. The MY.CNF options file defines the\n\
707-
location of the database. This command connects to the MySQL server\n\
708-
using the mysql client program, and runs xtrabackup as a child\n\
709-
process.\n\
691+
location of the database.\n\
710692
\n\
711693
The --apply-log command prepares a backup for starting a MySQL\n\
712694
server on the backup. This command recovers InnoDB data files as specified\n\
713695
in BACKUP-DIR/backup-my.cnf using BACKUP-DIR/ib_logfile0,\n\
714696
and creates new InnoDB log files as specified in BACKUP-DIR/backup-my.cnf.\n\
715-
The BACKUP-DIR should be the path to a backup directory created by\n\
716-
xtrabackup. This command runs xtrabackup as a child process, but it does not \n\
717-
connect to the database server.\n\
697+
The BACKUP-DIR should be the path to a backup directory\n\
718698
\n\
719699
The --copy-back command copies data, index, and log files\n\
720700
from the backup directory back to their original locations.\n\
721701
The MY.CNF options file defines the original location of the database.\n\
722-
The BACKUP-DIR is the path to a backup directory created by xtrabackup.\n\
702+
The BACKUP-DIR is the path to a backup directory.\n\
723703
\n\
724704
The --move-back command is similar to --copy-back with the only difference that\n\
725705
it moves files to their original locations rather than copies them. As this\n\

0 commit comments

Comments
 (0)