summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-06-22 12:21:54 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-06-30 11:35:28 +0300
commit4fe89773d811f1414165d1efb1b910a7f47a69f7 (patch)
tree08c9923f0ce37a2ecd8ff1d02a4fcd9d51b0c009 /extra
parent273e0f663e5a7254aa4e956572f6faa97e5579c9 (diff)
downloadmariadb-git-4fe89773d811f1414165d1efb1b910a7f47a69f7.tar.gz
Mariabackup: Clean up xtrabackup options
Fix the binding of databases_file. It was incorrectly mapped to OPT_XTRA_TABLES_FILE. Remove some unused options and variables.
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/xtrabackup.cc21
-rw-r--r--extra/mariabackup/xtrabackup.h4
2 files changed, 1 insertions, 24 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index a268c3f7a78..6e15a9973ce 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -239,7 +239,6 @@ long innobase_open_files = 300L;
longlong innobase_page_size = (1LL << 14); /* 16KB */
static ulong innobase_log_block_size = 512;
-my_bool innobase_fast_checksum = FALSE;
char* innobase_doublewrite_file = NULL;
char* innobase_buffer_pool_filename = NULL;
@@ -361,9 +360,6 @@ const char *opt_history = NULL;
#if defined(HAVE_OPENSSL)
my_bool opt_ssl_verify_server_cert = FALSE;
-#if !defined(HAVE_YASSL)
-char *opt_server_public_key = NULL;
-#endif
#endif
/* Whether xtrabackup_binlog_info should be created on recovery */
@@ -511,8 +507,6 @@ enum options_xtrabackup
OPT_INNODB_USE_NATIVE_AIO,
OPT_INNODB_PAGE_SIZE,
OPT_INNODB_LOG_BLOCK_SIZE,
- OPT_INNODB_FAST_CHECKSUM,
- OPT_INNODB_EXTRA_UNDOSLOTS,
OPT_INNODB_DOUBLEWRITE_FILE,
OPT_INNODB_BUFFER_POOL_FILENAME,
OPT_INNODB_FORCE_RECOVERY,
@@ -564,10 +558,6 @@ enum options_xtrabackup
OPT_BINLOG_INFO,
OPT_XB_SECURE_AUTH,
- OPT_SSL_SSL,
- OPT_SSL_VERIFY_SERVER_CERT,
- OPT_SERVER_PUBLIC_KEY,
-
OPT_XTRA_TABLES_EXCLUDE,
OPT_XTRA_DATABASES_EXCLUDE,
};
@@ -629,7 +619,7 @@ struct my_option xb_client_options[] =
{"databases", OPT_XTRA_DATABASES, "filtering by list of databases.",
(G_PTR*) &xtrabackup_databases, (G_PTR*) &xtrabackup_databases,
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
- {"databases_file", OPT_XTRA_TABLES_FILE,
+ {"databases_file", OPT_XTRA_DATABASES_FILE,
"filtering by list of databases in the file.",
(G_PTR*) &xtrabackup_databases_file, (G_PTR*) &xtrabackup_databases_file,
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
@@ -1060,10 +1050,6 @@ Disable with --skip-innodb-doublewrite.", (G_PTR*) &innobase_use_doublewrite,
"Changing for created log file is not supported. Use on your own risk!",
(G_PTR*) &innobase_log_block_size, (G_PTR*) &innobase_log_block_size, 0,
GET_ULONG, REQUIRED_ARG, 512, 512, 1 << UNIV_PAGE_SIZE_SHIFT_MAX, 0, 1L, 0},
- {"innodb_fast_checksum", OPT_INNODB_FAST_CHECKSUM,
- "Change the algorithm of checksum for the whole of datapage to 4-bytes word based.",
- (G_PTR*) &innobase_fast_checksum,
- (G_PTR*) &innobase_fast_checksum, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"innodb_doublewrite_file", OPT_INNODB_DOUBLEWRITE_FILE,
"Path to special datafile for doublewrite buffer. (default is "": not used)",
(G_PTR*) &innobase_doublewrite_file, (G_PTR*) &innobase_doublewrite_file,
@@ -1290,11 +1276,6 @@ xb_get_one_option(int optid,
ADD_PRINT_PARAM_OPT(innobase_page_size);
break;
- case OPT_INNODB_FAST_CHECKSUM:
-
- ADD_PRINT_PARAM_OPT(!!innobase_fast_checksum);
- break;
-
case OPT_INNODB_LOG_BLOCK_SIZE:
ADD_PRINT_PARAM_OPT(innobase_log_block_size);
diff --git a/extra/mariabackup/xtrabackup.h b/extra/mariabackup/xtrabackup.h
index a26f00f6b06..455b85c4abc 100644
--- a/extra/mariabackup/xtrabackup.h
+++ b/extra/mariabackup/xtrabackup.h
@@ -213,11 +213,7 @@ bool
check_if_param_set(const char *param);
#if defined(HAVE_OPENSSL)
-extern my_bool opt_use_ssl;
extern my_bool opt_ssl_verify_server_cert;
-#if !defined(HAVE_YASSL)
-extern char *opt_server_public_key;
-#endif
#endif