Commit d3c77e08 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-20556 Remove references to "xtrabackup" and "innobackupex" in mariabackup --help

parent 91bde0fb
...@@ -214,7 +214,7 @@ ibx_mode_t ibx_mode = IBX_MODE_BACKUP; ...@@ -214,7 +214,7 @@ ibx_mode_t ibx_mode = IBX_MODE_BACKUP;
static struct my_option ibx_long_options[] = static struct my_option ibx_long_options[] =
{ {
{"version", 'v', "print xtrabackup version information", {"version", 'v', "print version information",
(uchar *) &opt_ibx_version, (uchar *) &opt_ibx_version, 0, (uchar *) &opt_ibx_version, (uchar *) &opt_ibx_version, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
...@@ -257,12 +257,11 @@ static struct my_option ibx_long_options[] = ...@@ -257,12 +257,11 @@ static struct my_option ibx_long_options[] =
(uchar *) &opt_ibx_slave_info, (uchar *) &opt_ibx_slave_info, 0, (uchar *) &opt_ibx_slave_info, (uchar *) &opt_ibx_slave_info, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"incremental", OPT_INCREMENTAL, "This option tells xtrabackup to " {"incremental", OPT_INCREMENTAL,
"create an incremental backup, rather than a full one. It is passed " "Create an incremental backup, rather than a full one. When this option is specified, "
"to the xtrabackup child process. When this option is specified, "
"either --incremental-lsn or --incremental-basedir can also be given. " "either --incremental-lsn or --incremental-basedir can also be given. "
"If neither option is given, option --incremental-basedir is passed " "If neither option is given, option --incremental-basedir is used "
"to xtrabackup by default, set to the first timestamped backup " "by default, set to the first timestamped backup "
"directory in the backup base directory.", "directory in the backup base directory.",
(uchar *) &opt_ibx_incremental, (uchar *) &opt_ibx_incremental, 0, (uchar *) &opt_ibx_incremental, (uchar *) &opt_ibx_incremental, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
...@@ -377,14 +376,14 @@ static struct my_option ibx_long_options[] = ...@@ -377,14 +376,14 @@ static struct my_option ibx_long_options[] =
{"incremental-history-name", OPT_INCREMENTAL_HISTORY_NAME, {"incremental-history-name", OPT_INCREMENTAL_HISTORY_NAME,
"This option specifies the name of the backup series stored in the " "This option specifies the name of the backup series stored in the "
"PERCONA_SCHEMA.xtrabackup_history history record to base an " "PERCONA_SCHEMA.xtrabackup_history history record to base an "
"incremental backup on. Xtrabackup will search the history table " "incremental backup on. Backup will search the history table "
"looking for the most recent (highest innodb_to_lsn), successful " "looking for the most recent (highest innodb_to_lsn), successful "
"backup in the series and take the to_lsn value to use as the " "backup in the series and take the to_lsn value to use as the "
"starting lsn for the incremental backup. This will be mutually " "starting lsn for the incremental backup. This will be mutually "
"exclusive with --incremental-history-uuid, --incremental-basedir " "exclusive with --incremental-history-uuid, --incremental-basedir "
"and --incremental-lsn. If no valid lsn can be found (no series by " "and --incremental-lsn. If no valid lsn can be found (no series by "
"that name, no successful backups by that name) xtrabackup will " "that name, no successful backups by that name), "
"return with an error. It is used with the --incremental option.", "an error will be returned. It is used with the --incremental option.",
(uchar*) &opt_ibx_incremental_history_name, (uchar*) &opt_ibx_incremental_history_name,
(uchar*) &opt_ibx_incremental_history_name, 0, GET_STR, (uchar*) &opt_ibx_incremental_history_name, 0, GET_STR,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
...@@ -394,8 +393,8 @@ static struct my_option ibx_long_options[] = ...@@ -394,8 +393,8 @@ static struct my_option ibx_long_options[] =
"stored in the PERCONA_SCHEMA.xtrabackup_history to base an " "stored in the PERCONA_SCHEMA.xtrabackup_history to base an "
"incremental backup on. --incremental-history-name, " "incremental backup on. --incremental-history-name, "
"--incremental-basedir and --incremental-lsn. If no valid lsn can be " "--incremental-basedir and --incremental-lsn. If no valid lsn can be "
"found (no success record with that uuid) xtrabackup will return " "found (no success record with that uuid), an error will be returned."
"with an error. It is used with the --incremental option.", " It is used with the --incremental option.",
(uchar*) &opt_ibx_incremental_history_uuid, (uchar*) &opt_ibx_incremental_history_uuid,
(uchar*) &opt_ibx_incremental_history_uuid, 0, GET_STR, (uchar*) &opt_ibx_incremental_history_uuid, 0, GET_STR,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
...@@ -424,7 +423,7 @@ static struct my_option ibx_long_options[] = ...@@ -424,7 +423,7 @@ static struct my_option ibx_long_options[] =
{"include", OPT_INCLUDE, {"include", OPT_INCLUDE,
"This option is a regular expression to be matched against table " "This option is a regular expression to be matched against table "
"names in databasename.tablename format. It is passed directly to " "names in databasename.tablename format. It is passed directly to "
"xtrabackup's --tables option. See the xtrabackup documentation for " "--tables option. See the documentation for "
"details.", "details.",
(uchar*) &opt_ibx_include, (uchar*) &opt_ibx_include,
(uchar*) &opt_ibx_include, 0, GET_STR, (uchar*) &opt_ibx_include, 0, GET_STR,
...@@ -474,12 +473,6 @@ static struct my_option ibx_long_options[] = ...@@ -474,12 +473,6 @@ static struct my_option ibx_long_options[] =
(uchar*) &opt_ibx_lock_wait_threshold, 0, GET_UINT, (uchar*) &opt_ibx_lock_wait_threshold, 0, GET_UINT,
REQUIRED_ARG, 60, 0, 0, 0, 0, 0}, REQUIRED_ARG, 60, 0, 0, 0, 0, 0},
{"debug-sleep-before-unlock", OPT_DEBUG_SLEEP_BEFORE_UNLOCK,
"This is a debug-only option used by the XtraBackup test suite.",
(uchar*) &opt_ibx_debug_sleep_before_unlock,
(uchar*) &opt_ibx_debug_sleep_before_unlock, 0, GET_UINT,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"safe-slave-backup-timeout", OPT_SAFE_SLAVE_BACKUP_TIMEOUT, {"safe-slave-backup-timeout", OPT_SAFE_SLAVE_BACKUP_TIMEOUT,
"How many seconds --safe-slave-backup should wait for " "How many seconds --safe-slave-backup should wait for "
"Slave_open_temp_tables to become zero. (default 300)", "Slave_open_temp_tables to become zero. (default 300)",
...@@ -492,22 +485,20 @@ static struct my_option ibx_long_options[] = ...@@ -492,22 +485,20 @@ static struct my_option ibx_long_options[] =
We put them here with only purpose for them to showup in We put them here with only purpose for them to showup in
innobackupex --help output */ innobackupex --help output */
{"close_files", OPT_CLOSE_FILES, "Do not keep files opened. This " {"close_files", OPT_CLOSE_FILES, "Do not keep files opened."
"option is passed directly to xtrabackup. Use at your own risk.", " Use at your own risk.",
(uchar*) &ibx_xb_close_files, (uchar*) &ibx_xb_close_files, 0, (uchar*) &ibx_xb_close_files, (uchar*) &ibx_xb_close_files, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"compress", OPT_COMPRESS, "This option instructs xtrabackup to " {"compress", OPT_COMPRESS, "This option instructs backup to "
"compress backup copies of InnoDB data files. It is passed directly " "compress backup copies of InnoDB data files."
"to the xtrabackup child process. Try 'xtrabackup --help' for more " , (uchar*) &ibx_xtrabackup_compress_alg,
"details.", (uchar*) &ibx_xtrabackup_compress_alg,
(uchar*) &ibx_xtrabackup_compress_alg, 0, (uchar*) &ibx_xtrabackup_compress_alg, 0,
GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0}, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
{"compress-threads", OPT_COMPRESS_THREADS, {"compress-threads", OPT_COMPRESS_THREADS,
"This option specifies the number of worker threads that will be used " "This option specifies the number of worker threads that will be used "
"for parallel compression. It is passed directly to the xtrabackup " "for parallel compression.",
"child process. Try 'xtrabackup --help' for more details.",
(uchar*) &ibx_xtrabackup_compress_threads, (uchar*) &ibx_xtrabackup_compress_threads,
(uchar*) &ibx_xtrabackup_compress_threads, (uchar*) &ibx_xtrabackup_compress_threads,
0, GET_UINT, REQUIRED_ARG, 1, 1, UINT_MAX, 0, 0, 0}, 0, GET_UINT, REQUIRED_ARG, 1, 1, UINT_MAX, 0, 0, 0},
...@@ -518,17 +509,15 @@ static struct my_option ibx_long_options[] = ...@@ -518,17 +509,15 @@ static struct my_option ibx_long_options[] =
(uchar*) &ibx_xtrabackup_compress_chunk_size, (uchar*) &ibx_xtrabackup_compress_chunk_size,
0, GET_ULL, REQUIRED_ARG, (1 << 16), 1024, ULONGLONG_MAX, 0, 0, 0}, 0, GET_ULL, REQUIRED_ARG, (1 << 16), 1024, ULONGLONG_MAX, 0, 0, 0},
{"export", OPT_EXPORT, "This option is passed directly to xtrabackup's " {"export", OPT_EXPORT, " enables exporting individual tables for import "
"--export option. It enables exporting individual tables for import " "into another server.",
"into another server. See the xtrabackup documentation for details.",
(uchar*) &ibx_xtrabackup_export, (uchar*) &ibx_xtrabackup_export, (uchar*) &ibx_xtrabackup_export, (uchar*) &ibx_xtrabackup_export,
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"extra-lsndir", OPT_EXTRA_LSNDIR, "This option specifies the " {"extra-lsndir", OPT_EXTRA_LSNDIR, "This option specifies the "
"directory in which to save an extra copy of the " "directory in which to save an extra copy of the "
"\"xtrabackup_checkpoints\" file. The option accepts a string " "\"xtrabackup_checkpoints\" file. The option accepts a string "
"argument. It is passed directly to xtrabackup's --extra-lsndir " "argument.",
"option. See the xtrabackup documentation for details.",
(uchar*) &ibx_xtrabackup_extra_lsndir, (uchar*) &ibx_xtrabackup_extra_lsndir,
(uchar*) &ibx_xtrabackup_extra_lsndir, (uchar*) &ibx_xtrabackup_extra_lsndir,
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
...@@ -550,7 +539,7 @@ static struct my_option ibx_long_options[] = ...@@ -550,7 +539,7 @@ static struct my_option ibx_long_options[] =
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"incremental-force-scan", OPT_INCREMENTAL_FORCE_SCAN, {"incremental-force-scan", OPT_INCREMENTAL_FORCE_SCAN,
"This options tells xtrabackup to perform full scan of data files " "Perform full scan of data files "
"for taking an incremental backup even if full changed page bitmap " "for taking an incremental backup even if full changed page bitmap "
"data is available to enable the backup without the full scan.", "data is available to enable the backup without the full scan.",
(uchar*)&ibx_xtrabackup_incremental_force_scan, (uchar*)&ibx_xtrabackup_incremental_force_scan,
...@@ -576,10 +565,8 @@ static struct my_option ibx_long_options[] = ...@@ -576,10 +565,8 @@ static struct my_option ibx_long_options[] =
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"parallel", OPT_PARALLEL, "On backup, this option specifies the " {"parallel", OPT_PARALLEL, "On backup, this option specifies the "
"number of threads the xtrabackup child process should use to back " "number of threads to use to back "
"up files concurrently. The option accepts an integer argument. It " "up files concurrently. The option accepts an integer argument.",
"is passed directly to xtrabackup's --parallel option. See the "
"xtrabackup documentation for details.",
(uchar*) &ibx_xtrabackup_parallel, (uchar*) &ibx_xtrabackup_parallel, (uchar*) &ibx_xtrabackup_parallel, (uchar*) &ibx_xtrabackup_parallel,
0, GET_INT, REQUIRED_ARG, 1, 1, INT_MAX, 0, 0, 0}, 0, GET_INT, REQUIRED_ARG, 1, 1, INT_MAX, 0, 0, 0},
...@@ -587,23 +574,21 @@ static struct my_option ibx_long_options[] = ...@@ -587,23 +574,21 @@ static struct my_option ibx_long_options[] =
{"stream", OPT_STREAM, "This option specifies the format in which to " {"stream", OPT_STREAM, "This option specifies the format in which to "
"do the streamed backup. The option accepts a string argument. The " "do the streamed backup. The option accepts a string argument. The "
"backup will be done to STDOUT in the specified format. Currently, " "backup will be done to STDOUT in the specified format. Currently, "
"the only supported formats are tar and mbstream/xbstream. This " "the only supported formats are tar and mbstream/xbstream.",
"option is passed directly to xtrabackup's --stream option.",
(uchar*) &ibx_xtrabackup_stream_str, (uchar*) &ibx_xtrabackup_stream_str,
(uchar*) &ibx_xtrabackup_stream_str, 0, GET_STR, (uchar*) &ibx_xtrabackup_stream_str, 0, GET_STR,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"tables-file", OPT_TABLES_FILE, "This option specifies the file in " {"tables-file", OPT_TABLES_FILE, "This option specifies the file in "
"which there are a list of names of the form database. The option " "which there are a list of names of the form database. The option "
"accepts a string argument.table, one per line. The option is passed " "accepts a string argument.table, one per line.",
"directly to xtrabackup's --tables-file option.",
(uchar*) &ibx_xtrabackup_tables_file, (uchar*) &ibx_xtrabackup_tables_file,
(uchar*) &ibx_xtrabackup_tables_file, (uchar*) &ibx_xtrabackup_tables_file,
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"throttle", OPT_THROTTLE, "This option specifies a number of I/O " {"throttle", OPT_THROTTLE, "This option specifies a number of I/O "
"operations (pairs of read+write) per second. It accepts an integer " "operations (pairs of read+write) per second. It accepts an integer "
"argument. It is passed directly to xtrabackup's --throttle option.", "argument.",
(uchar*) &ibx_xtrabackup_throttle, (uchar*) &ibx_xtrabackup_throttle, (uchar*) &ibx_xtrabackup_throttle, (uchar*) &ibx_xtrabackup_throttle,
0, GET_LONG, REQUIRED_ARG, 0, 0, LONG_MAX, 0, 1, 0}, 0, GET_LONG, REQUIRED_ARG, 0, 0, LONG_MAX, 0, 1, 0},
...@@ -615,11 +600,10 @@ static struct my_option ibx_long_options[] = ...@@ -615,11 +600,10 @@ static struct my_option ibx_long_options[] =
0, 0, 0, 0, 0, 0}, 0, 0, 0, 0, 0, 0},
{"use-memory", OPT_USE_MEMORY, "This option accepts a string argument " {"use-memory", OPT_USE_MEMORY, "This option accepts a string argument "
"that specifies the amount of memory in bytes for xtrabackup to use " "that specifies the amount of memory in bytes to use "
"for crash recovery while preparing a backup. Multiples are supported " "for crash recovery while preparing a backup. Multiples are supported "
"providing the unit (e.g. 1MB, 1GB). It is used only with the option " "providing the unit (e.g. 1MB, 1GB). It is used only with the option "
"--apply-log. It is passed directly to xtrabackup's --use-memory " "--apply-log.",
"option. See the xtrabackup documentation for details.",
(uchar*) &ibx_xtrabackup_use_memory, (uchar*) &ibx_xtrabackup_use_memory,
(uchar*) &ibx_xtrabackup_use_memory, (uchar*) &ibx_xtrabackup_use_memory,
0, GET_LL, REQUIRED_ARG, 100*1024*1024L, 1024*1024L, LONGLONG_MAX, 0, 0, GET_LL, REQUIRED_ARG, 100*1024*1024L, 1024*1024L, LONGLONG_MAX, 0,
...@@ -641,7 +625,7 @@ static struct my_option ibx_long_options[] = ...@@ -641,7 +625,7 @@ static struct my_option ibx_long_options[] =
static void usage(void) static void usage(void)
{ {
puts("Open source backup tool for InnoDB and XtraDB\n\ puts("Open source backup tool\n\
\n\ \n\
Copyright (C) 2009-2015 Percona LLC and/or its affiliates.\n\ Copyright (C) 2009-2015 Percona LLC and/or its affiliates.\n\
Portions Copyright (C) 2000, 2011, MySQL AB & Innobase Oy. All Rights Reserved.\n\ Portions Copyright (C) 2000, 2011, MySQL AB & Innobase Oy. All Rights Reserved.\n\
...@@ -692,7 +676,7 @@ innobackupex [--decompress]\n\ ...@@ -692,7 +676,7 @@ innobackupex [--decompress]\n\
\n\ \n\
DESCRIPTION\n\ DESCRIPTION\n\
\n\ \n\
The first command line above makes a hot backup of a MySQL database.\n\ The first command line above makes a hot backup of a database.\n\
By default it creates a backup directory (named by the current date\n\ By default it creates a backup directory (named by the current date\n\
and time) in the given backup root directory. With the --no-timestamp\n\ and time) in the given backup root directory. With the --no-timestamp\n\
option it does not create a time-stamped backup directory, but it puts\n\ option it does not create a time-stamped backup directory, but it puts\n\
...@@ -702,22 +686,18 @@ indexes in all databases or in all of the databases specified with the\n\ ...@@ -702,22 +686,18 @@ indexes in all databases or in all of the databases specified with the\n\
--databases option. The created backup contains .frm, .MRG, .MYD,\n\ --databases option. The created backup contains .frm, .MRG, .MYD,\n\
.MYI, .MAD, .MAI, .TRG, .TRN, .ARM, .ARZ, .CSM, CSV, .opt, .par, and\n\ .MYI, .MAD, .MAI, .TRG, .TRN, .ARM, .ARZ, .CSM, CSV, .opt, .par, and\n\
InnoDB data and log files. The MY.CNF options file defines the\n\ InnoDB data and log files. The MY.CNF options file defines the\n\
location of the database. This command connects to the MySQL server\n\ location of the database.\n\
using the mysql client program, and runs xtrabackup as a child\n\
process.\n\
\n\ \n\
The --apply-log command prepares a backup for starting a MySQL\n\ The --apply-log command prepares a backup for starting a MySQL\n\
server on the backup. This command recovers InnoDB data files as specified\n\ server on the backup. This command recovers InnoDB data files as specified\n\
in BACKUP-DIR/backup-my.cnf using BACKUP-DIR/ib_logfile0,\n\ in BACKUP-DIR/backup-my.cnf using BACKUP-DIR/ib_logfile0,\n\
and creates new InnoDB log files as specified in BACKUP-DIR/backup-my.cnf.\n\ and creates new InnoDB log files as specified in BACKUP-DIR/backup-my.cnf.\n\
The BACKUP-DIR should be the path to a backup directory created by\n\ The BACKUP-DIR should be the path to a backup directory\n\
xtrabackup. This command runs xtrabackup as a child process, but it does not \n\
connect to the database server.\n\
\n\ \n\
The --copy-back command copies data, index, and log files\n\ The --copy-back command copies data, index, and log files\n\
from the backup directory back to their original locations.\n\ from the backup directory back to their original locations.\n\
The MY.CNF options file defines the original location of the database.\n\ The MY.CNF options file defines the original location of the database.\n\
The BACKUP-DIR is the path to a backup directory created by xtrabackup.\n\ The BACKUP-DIR is the path to a backup directory.\n\
\n\ \n\
The --move-back command is similar to --copy-back with the only difference that\n\ The --move-back command is similar to --copy-back with the only difference that\n\
it moves files to their original locations rather than copies them. As this\n\ it moves files to their original locations rather than copies them. As this\n\
......
...@@ -267,8 +267,6 @@ it every INNOBASE_WAKE_INTERVAL'th step. */ ...@@ -267,8 +267,6 @@ it every INNOBASE_WAKE_INTERVAL'th step. */
ulong innobase_active_counter = 0; ulong innobase_active_counter = 0;
static char *xtrabackup_debug_sync = NULL;
my_bool xtrabackup_incremental_force_scan = FALSE; my_bool xtrabackup_incremental_force_scan = FALSE;
/* /*
...@@ -1059,7 +1057,7 @@ enum options_xtrabackup ...@@ -1059,7 +1057,7 @@ enum options_xtrabackup
struct my_option xb_client_options[]= { struct my_option xb_client_options[]= {
{"verbose", 'V', "display verbose output", (G_PTR *) &verbose, {"verbose", 'V', "display verbose output", (G_PTR *) &verbose,
(G_PTR *) &verbose, 0, GET_BOOL, NO_ARG, FALSE, 0, 0, 0, 0, 0}, (G_PTR *) &verbose, 0, GET_BOOL, NO_ARG, FALSE, 0, 0, 0, 0, 0},
{"version", 'v', "print xtrabackup version information", {"version", 'v', "print version information",
(G_PTR *) &xtrabackup_version, (G_PTR *) &xtrabackup_version, 0, GET_BOOL, (G_PTR *) &xtrabackup_version, (G_PTR *) &xtrabackup_version, 0, GET_BOOL,
NO_ARG, 0, 0, 0, 0, 0, 0}, NO_ARG, 0, 0, 0, 0, 0, 0},
{"target-dir", OPT_XTRA_TARGET_DIR, "destination directory", {"target-dir", OPT_XTRA_TARGET_DIR, "destination directory",
...@@ -1356,8 +1354,8 @@ struct my_option xb_client_options[]= { ...@@ -1356,8 +1354,8 @@ struct my_option xb_client_options[]= {
"starting lsn for the incremental backup. This will be mutually " "starting lsn for the incremental backup. This will be mutually "
"exclusive with --incremental-history-uuid, --incremental-basedir " "exclusive with --incremental-history-uuid, --incremental-basedir "
"and --incremental-lsn. If no valid lsn can be found (no series by " "and --incremental-lsn. If no valid lsn can be found (no series by "
"that name, no successful backups by that name) xtrabackup will " "that name, no successful backups by that name), an error will be returned."
"return with an error. It is used with the --incremental option.", " It is used with the --incremental option.",
(uchar *) &opt_incremental_history_name, (uchar *) &opt_incremental_history_name,
(uchar *) &opt_incremental_history_name, 0, GET_STR, REQUIRED_ARG, 0, 0, (uchar *) &opt_incremental_history_name, 0, GET_STR, REQUIRED_ARG, 0, 0,
0, 0, 0, 0}, 0, 0, 0, 0},
...@@ -1367,8 +1365,8 @@ struct my_option xb_client_options[]= { ...@@ -1367,8 +1365,8 @@ struct my_option xb_client_options[]= {
"stored in the PERCONA_SCHEMA.xtrabackup_history to base an " "stored in the PERCONA_SCHEMA.xtrabackup_history to base an "
"incremental backup on. --incremental-history-name, " "incremental backup on. --incremental-history-name, "
"--incremental-basedir and --incremental-lsn. If no valid lsn can be " "--incremental-basedir and --incremental-lsn. If no valid lsn can be "
"found (no success record with that uuid) xtrabackup will return " "found (no success record with that uuid), an error will be returned."
"with an error. It is used with the --incremental option.", " It is used with the --incremental option.",
(uchar *) &opt_incremental_history_uuid, (uchar *) &opt_incremental_history_uuid,
(uchar *) &opt_incremental_history_uuid, 0, GET_STR, REQUIRED_ARG, 0, 0, (uchar *) &opt_incremental_history_uuid, 0, GET_STR, REQUIRED_ARG, 0, 0,
0, 0, 0, 0}, 0, 0, 0, 0},
...@@ -1425,11 +1423,6 @@ struct my_option xb_client_options[]= { ...@@ -1425,11 +1423,6 @@ struct my_option xb_client_options[]= {
(uchar *) &opt_lock_wait_threshold, (uchar *) &opt_lock_wait_threshold, 0, (uchar *) &opt_lock_wait_threshold, (uchar *) &opt_lock_wait_threshold, 0,
GET_UINT, REQUIRED_ARG, 60, 0, 0, 0, 0, 0}, GET_UINT, REQUIRED_ARG, 60, 0, 0, 0, 0, 0},
{"debug-sleep-before-unlock", OPT_DEBUG_SLEEP_BEFORE_UNLOCK,
"This is a debug-only option used by the XtraBackup test suite.",
(uchar *) &opt_debug_sleep_before_unlock,
(uchar *) &opt_debug_sleep_before_unlock, 0, GET_UINT, REQUIRED_ARG, 0, 0,
0, 0, 0, 0},
{"safe-slave-backup-timeout", OPT_SAFE_SLAVE_BACKUP_TIMEOUT, {"safe-slave-backup-timeout", OPT_SAFE_SLAVE_BACKUP_TIMEOUT,
"How many seconds --safe-slave-backup should wait for " "How many seconds --safe-slave-backup should wait for "
...@@ -1439,9 +1432,9 @@ struct my_option xb_client_options[]= { ...@@ -1439,9 +1432,9 @@ struct my_option xb_client_options[]= {
0, 0, 0, 0, 0}, 0, 0, 0, 0, 0},
{"binlog-info", OPT_BINLOG_INFO, {"binlog-info", OPT_BINLOG_INFO,
"This option controls how XtraBackup should retrieve server's binary log " "This option controls how backup should retrieve server's binary log "
"coordinates corresponding to the backup. Possible values are OFF, ON, " "coordinates corresponding to the backup. Possible values are OFF, ON, "
"LOCKLESS and AUTO. See the XtraBackup manual for more information", "LOCKLESS and AUTO.",
&opt_binlog_info, &opt_binlog_info, &binlog_info_typelib, GET_ENUM, &opt_binlog_info, &opt_binlog_info, &binlog_info_typelib, GET_ENUM,
OPT_ARG, BINLOG_INFO_AUTO, 0, 0, 0, 0, 0}, OPT_ARG, BINLOG_INFO_AUTO, 0, 0, 0, 0, 0},
...@@ -1615,13 +1608,6 @@ struct my_option xb_server_options[] = ...@@ -1615,13 +1608,6 @@ struct my_option xb_server_options[] =
&dbug_option, &dbug_option, 0, GET_STR, OPT_ARG, &dbug_option, &dbug_option, 0, GET_STR, OPT_ARG,
0, 0, 0, 0, 0, 0}, 0, 0, 0, 0, 0, 0},
#endif #endif
#ifndef __WIN__
{"debug-sync", OPT_XTRA_DEBUG_SYNC,
"Debug sync point. This is only used by the xtrabackup test suite",
(G_PTR*) &xtrabackup_debug_sync,
(G_PTR*) &xtrabackup_debug_sync,
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
#endif
{"innodb_checksum_algorithm", OPT_INNODB_CHECKSUM_ALGORITHM, {"innodb_checksum_algorithm", OPT_INNODB_CHECKSUM_ALGORITHM,
"The algorithm InnoDB uses for page checksumming. [CRC32, STRICT_CRC32, " "The algorithm InnoDB uses for page checksumming. [CRC32, STRICT_CRC32, "
...@@ -1665,7 +1651,7 @@ struct my_option xb_server_options[] = ...@@ -1665,7 +1651,7 @@ struct my_option xb_server_options[] =
REQUIRED_ARG, 0, 0, UINT_MAX, 0, 1, 0}, REQUIRED_ARG, 0, 0, UINT_MAX, 0, 1, 0},
{"lock-ddl-per-table", OPT_LOCK_DDL_PER_TABLE, "Lock DDL for each table " {"lock-ddl-per-table", OPT_LOCK_DDL_PER_TABLE, "Lock DDL for each table "
"before xtrabackup starts to copy it and until the backup is completed.", "before backup starts to copy it and until the backup is completed.",
(uchar*) &opt_lock_ddl_per_table, (uchar*) &opt_lock_ddl_per_table, 0, (uchar*) &opt_lock_ddl_per_table, (uchar*) &opt_lock_ddl_per_table, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
...@@ -1696,60 +1682,6 @@ struct my_option xb_server_options[] = ...@@ -1696,60 +1682,6 @@ struct my_option xb_server_options[] =
uint xb_server_options_count = array_elements(xb_server_options); uint xb_server_options_count = array_elements(xb_server_options);
#ifndef __WIN__
static int debug_sync_resumed;
static void sigcont_handler(int sig);
static void sigcont_handler(int sig __attribute__((unused)))
{
debug_sync_resumed= 1;
}
#endif
static inline
void
debug_sync_point(const char *name)
{
#ifndef __WIN__
FILE *fp;
pid_t pid;
char pid_path[FN_REFLEN];
if (xtrabackup_debug_sync == NULL) {
return;
}
if (strcmp(xtrabackup_debug_sync, name)) {
return;
}
pid = getpid();
snprintf(pid_path, sizeof(pid_path), "%s/xtrabackup_debug_sync",
xtrabackup_target_dir);
fp = fopen(pid_path, "w");
if (fp == NULL) {
die("Can't open open %s", pid_path);
}
fprintf(fp, "%u\n", (uint) pid);
fclose(fp);
msg("mariabackup: DEBUG: Suspending at debug sync point '%s'. "
"Resume with 'kill -SIGCONT %u'.", name, (uint) pid);
debug_sync_resumed= 0;
kill(pid, SIGSTOP);
while (!debug_sync_resumed) {
sleep(1);
}
/* On resume */
msg("mariabackup: DEBUG: removing the pid file.");
my_delete(pid_path, MYF(MY_WME));
#endif
}
static std::set<std::string> tables_for_export; static std::set<std::string> tables_for_export;
...@@ -3109,8 +3041,6 @@ static bool xtrabackup_copy_logfile(bool last = false) ...@@ -3109,8 +3041,6 @@ static bool xtrabackup_copy_logfile(bool last = false)
log_copy_scanned_lsn = start_lsn; log_copy_scanned_lsn = start_lsn;
pthread_cond_broadcast(&scanned_lsn_cond); pthread_cond_broadcast(&scanned_lsn_cond);
pthread_mutex_unlock(&backup_mutex); pthread_mutex_unlock(&backup_mutex);
debug_sync_point("xtrabackup_copy_logfile_pause");
return(false); return(false);
} }
...@@ -3242,8 +3172,6 @@ data_copy_thread_func( ...@@ -3242,8 +3172,6 @@ data_copy_thread_func(
*/ */
my_thread_init(); my_thread_init();
debug_sync_point("data_copy_thread_func");
while ((node = datafiles_iter_next(ctxt->it)) != NULL) { while ((node = datafiles_iter_next(ctxt->it)) != NULL) {
DBUG_MARIABACKUP_EVENT("before_copy", node->space->name); DBUG_MARIABACKUP_EVENT("before_copy", node->space->name);
DBUG_EXECUTE_FOR_KEY("wait_innodb_redo_before_copy", node->space->name, DBUG_EXECUTE_FOR_KEY("wait_innodb_redo_before_copy", node->space->name,
...@@ -3774,8 +3702,6 @@ xb_load_tablespaces() ...@@ -3774,8 +3702,6 @@ xb_load_tablespaces()
if (err != DB_SUCCESS) { if (err != DB_SUCCESS) {
return(err); return(err);
} }
debug_sync_point("xtrabackup_load_tablespaces_pause");
DBUG_MARIABACKUP_EVENT("after_load_tablespaces", 0); DBUG_MARIABACKUP_EVENT("after_load_tablespaces", 0);
return(DB_SUCCESS); return(DB_SUCCESS);
} }
...@@ -4660,8 +4586,6 @@ static bool xtrabackup_backup_func() ...@@ -4660,8 +4586,6 @@ static bool xtrabackup_backup_func()
if (!flush_changed_page_bitmaps()) { if (!flush_changed_page_bitmaps()) {
goto fail; goto fail;
} }
debug_sync_point("xtrabackup_suspend_at_start");
ut_a(xtrabackup_parallel > 0); ut_a(xtrabackup_parallel > 0);
...@@ -6881,12 +6805,6 @@ static int main_low(char** argv) ...@@ -6881,12 +6805,6 @@ static int main_low(char** argv)
} }
} }
#ifndef __WIN__
if (xtrabackup_debug_sync) {
signal(SIGCONT, sigcont_handler);
}
#endif
/* --backup */ /* --backup */
if (xtrabackup_backup && !xtrabackup_backup_func()) { if (xtrabackup_backup && !xtrabackup_backup_func()) {
return(EXIT_FAILURE); return(EXIT_FAILURE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment