Merge lp:~percona-dev/percona-xtrabackup/fix-bug408966 into lp:percona-xtrabackup/2.0

Proposed by Aleksandr Kuzminsky
Status: Merged
Merged at revision: not available
Proposed branch: lp:~percona-dev/percona-xtrabackup/fix-bug408966
Merge into: lp:percona-xtrabackup/2.0
Diff against target: None lines
To merge this branch: bzr merge lp:~percona-dev/percona-xtrabackup/fix-bug408966
To post a comment you must log in.
Revision history for this message
Aleksandr Kuzminsky (akuzminsky) wrote :

Fixed bug408966

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'xtrabackup.c'
--- xtrabackup.c 2009-08-05 06:58:35 +0000
+++ xtrabackup.c 2009-08-17 11:32:34 +0000
@@ -323,7 +323,6 @@
323my_bool innobase_rollback_on_timeout = FALSE;323my_bool innobase_rollback_on_timeout = FALSE;
324my_bool innobase_create_status_file = FALSE;324my_bool innobase_create_status_file = FALSE;
325my_bool innobase_adaptive_hash_index = TRUE;325my_bool innobase_adaptive_hash_index = TRUE;
326my_bool innobase_fast_recovery = TRUE;
327326
328static char *internal_innobase_data_file_path = NULL;327static char *internal_innobase_data_file_path = NULL;
329328
@@ -386,8 +385,7 @@
386 OPT_INNODB_OPEN_FILES,385 OPT_INNODB_OPEN_FILES,
387 OPT_INNODB_SYNC_SPIN_LOOPS,386 OPT_INNODB_SYNC_SPIN_LOOPS,
388 OPT_INNODB_THREAD_CONCURRENCY,387 OPT_INNODB_THREAD_CONCURRENCY,
389 OPT_INNODB_THREAD_SLEEP_DELAY,388 OPT_INNODB_THREAD_SLEEP_DELAY
390 OPT_INNODB_FAST_RECOVERY
391};389};
392390
393static struct my_option my_long_options[] =391static struct my_option my_long_options[] =
@@ -496,10 +494,6 @@
496 {"innodb_doublewrite", OPT_INNODB_DOUBLEWRITE, "Enable InnoDB doublewrite buffer (enabled by default). \494 {"innodb_doublewrite", OPT_INNODB_DOUBLEWRITE, "Enable InnoDB doublewrite buffer (enabled by default). \
497Disable with --skip-innodb-doublewrite.", (GPTR*) &innobase_use_doublewrite,495Disable with --skip-innodb-doublewrite.", (GPTR*) &innobase_use_doublewrite,
498 (GPTR*) &innobase_use_doublewrite, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},496 (GPTR*) &innobase_use_doublewrite, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
499 {"innodb_fast_recovery", OPT_INNODB_FAST_RECOVERY,
500 "Enable to use speed hack of recovery avoiding flush list sorting.",
501 (gptr*) &innobase_fast_recovery, (gptr*) &innobase_fast_recovery,
502 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
503/*497/*
504 {"innodb_fast_shutdown", OPT_INNODB_FAST_SHUTDOWN,498 {"innodb_fast_shutdown", OPT_INNODB_FAST_SHUTDOWN,
505 "Speeds up the shutdown process of the InnoDB storage engine. Possible "499 "Speeds up the shutdown process of the InnoDB storage engine. Possible "
@@ -636,7 +630,21 @@
636630
637static void usage(void)631static void usage(void)
638{632{
639 puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");633 puts("Open source backup tool for InnoDB and XtraDB\n\
634\n\
635Copyright (C) 2009 Percona Inc.\n\
636\n\
637This program is free software; you can redistribute it and/or\n\
638modify it under the terms of the GNU General Public License\n\
639as published by the Free Software Foundation version 2\n\
640of the License.\n\
641\n\
642This program is distributed in the hope that it will be useful,\n\
643but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
644MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
645GNU General Public License for more details.\n\
646\n\
647You can download full text of the license on http://www.gnu.org/licenses/gpl-2.0.txt\n");
640648
641 printf("Usage: [%s [--defaults-file=#] --backup | %s [--defaults-file=#] --prepare] [OPTIONS]\n",my_progname,my_progname);649 printf("Usage: [%s [--defaults-file=#] --backup | %s [--defaults-file=#] --prepare] [OPTIONS]\n",my_progname,my_progname);
642 print_defaults("my",load_default_groups);650 print_defaults("my",load_default_groups);
@@ -1209,8 +1217,6 @@
1209 srv_lock_wait_timeout = (ulint) innobase_lock_wait_timeout;1217 srv_lock_wait_timeout = (ulint) innobase_lock_wait_timeout;
1210 srv_force_recovery = (ulint) innobase_force_recovery;1218 srv_force_recovery = (ulint) innobase_force_recovery;
12111219
1212 srv_fast_recovery = (ibool) innobase_fast_recovery;
1213
1214 srv_use_doublewrite_buf = (ibool) innobase_use_doublewrite;1220 srv_use_doublewrite_buf = (ibool) innobase_use_doublewrite;
1215 srv_use_checksums = (ibool) innobase_use_checksums;1221 srv_use_checksums = (ibool) innobase_use_checksums;
12161222
@@ -3349,11 +3355,6 @@
3349 "xtrabackup: Using %lld bytes for buffer pool (set by --use-memory parameter)\n",3355 "xtrabackup: Using %lld bytes for buffer pool (set by --use-memory parameter)\n",
3350 xtrabackup_use_memory);3356 xtrabackup_use_memory);
33513357
3352 if(srv_fast_recovery) {
3353 fprintf(stderr,
3354"xtrabackup: innodb_fast_recovery option is enabled. (default: false)\n");
3355 }
3356
3357 if(innodb_init())3358 if(innodb_init())
3358 goto error;3359 goto error;
33593360

Subscribers

People subscribed via source and target branches