~percona-core/percona-xtrabackup/2.0

« back to all changes in this revision

Viewing changes to src/xtrabackup.cc

  • Committer: Alexey Kopytov
  • Date: 2013-11-05 09:54:40 UTC
  • mto: This revision was merged to the branch mainline in revision 588.
  • Revision ID: akopytov@gmail.com-20131105095440-b6s71rpwm0wj3c3d
Bug #1247586: xtrabackup_56 defaults to innodb_checksum_algorithm=crc32

Fixed by changing the default value from 0 to
SRV_CHECKSUM_ALGORITHM_INNODB.

Bug #1248065: innodb_checksum_algorithm should be stored in
backup-my.cnf

Modified both innobackupex and the xtrabackup binary so that
innodb_checksum_algorithm is stored in backup-my.cnf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2042
2042
  "The algorithm InnoDB uses for page checksumming. [CRC32, STRICT_CRC32, "
2043
2043
   "INNODB, STRICT_INNODB, NONE, STRICT_NONE]", &srv_checksum_algorithm,
2044
2044
   &srv_checksum_algorithm, &innodb_checksum_algorithm_typelib, GET_ENUM,
2045
 
   REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
 
2045
   REQUIRED_ARG, SRV_CHECKSUM_ALGORITHM_INNODB, 0, 0, 0, 0, 0},
2046
2046
  {"innodb_undo_directory", OPT_INNODB_UNDO_DIRECTORY,
2047
2047
   "Directory where undo tablespace files live, this path can be absolute.",
2048
2048
   (G_PTR*) &srv_undo_dir, (G_PTR*) &srv_undo_dir,
8600
8600
                               srv_undo_dir);
8601
8601
                }
8602
8602
                printf("innodb_undo_tablespaces = %lu\n", srv_undo_tablespaces);
 
8603
                printf("innodb_checksum_algorithm = %s\n",
 
8604
                       innodb_checksum_algorithm_names[srv_checksum_algorithm]
 
8605
                       );
8603
8606
#endif
8604
8607
                printf("innodb_buffer_pool_filename = \"%s\"\n",
8605
8608
                        innobase_buffer_pool_filename ?