mariadb/extra/mariabackup
Marko Mäkelä 00f0c039d2 MDEV-15270 Mariabackup should not try to use doublewrite buffer
When Mariabackup gets a bad read of the first page of the system
tablespace file, it would inappropriately try to apply the doublewrite
buffer and write changes back to the data file (to the source file)!
This is very wrong and must be prevented.

The correct action would be to retry reading the system tablespace
as well as any other files whose first page was read incorrectly.
Fixing this was not attempted.

xb_load_tablespaces(): Shorten a bogus message to be more relevant.
The message can be displayed by --backup or --prepare.

xtrabackup_backup_func(), os_file_write_func(): Add a missing space
to a message.

Datafile::restore_from_doublewrite(): Do not even attempt the
operation in Mariabackup.

recv_init_crash_recovery_spaces(): Do not attempt to restore the
doublewrite buffer in Mariabackup (--prepare or --export), because
all pages should have been copied correctly in --backup already,
and because --backup should ignore the doublewrite buffer.

SysTablespace::read_lsn_and_check_flags(): Do not attempt to initialize
the doublewrite buffer in Mariabackup.

innodb_make_page_dirty(): Correct the bounds check.

Datafile::read_first_page(): Correct the name of the parameter.
2018-02-12 16:56:01 +02:00
..
crc MDEV-14283 : Fix compilation of mariabackup for gcc3.x 2017-11-21 17:19:32 +00:00
quicklz MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
backup_copy.cc InnoDB: Remove ut_snprintf() and the use of my_snprintf(); use snprintf() 2017-11-13 02:11:48 +02:00
backup_copy.h MDEV-13575 On failure, Mariabackup --backup --safe-slave-backup may forget to START SLAVE SQL_THREAD 2017-08-18 21:42:33 +03:00
backup_mysql.cc InnoDB: Remove ut_snprintf() and the use of my_snprintf(); use snprintf() 2017-11-13 02:11:48 +02:00
backup_mysql.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
backup_wsrep.h Fix compilation in mariabackup 2017-09-16 22:19:16 +02:00
changed_page_bitmap.cc InnoDB: Remove ut_snprintf() and the use of my_snprintf(); use snprintf() 2017-11-13 02:11:48 +02:00
changed_page_bitmap.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
CMakeLists.txt Remove a reference to a non-existent include directory 2017-07-07 11:57:39 +03:00
common.h Fixed build failure with PFS disabled 2017-11-24 17:30:40 +00:00
datasink.c Xtrabackup 2.3.8 2017-04-27 19:12:42 +02:00
datasink.h Xtrabackup 2.3.8 2017-04-27 19:12:42 +02:00
ds_archive.c compiler warnings 2017-04-27 19:12:43 +02:00
ds_archive.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
ds_buffer.c MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
ds_buffer.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
ds_compress.c MDEV-9566 Port Percona Xtrabackup to MariaDB as mariabackup 2017-04-27 19:12:40 +02:00
ds_compress.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
ds_local.c MDEV-9566 Port Percona Xtrabackup to MariaDB as mariabackup 2017-04-27 19:12:40 +02:00
ds_local.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
ds_stdout.c MDEV-9566 Port Percona Xtrabackup to MariaDB as mariabackup 2017-04-27 19:12:40 +02:00
ds_stdout.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
ds_tmpfile.c MDEV-9566 Port Percona Xtrabackup to MariaDB as mariabackup 2017-04-27 19:12:40 +02:00
ds_tmpfile.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
ds_xbstream.c MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
ds_xbstream.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
encryption_plugin.cc MDEV-12548 Initial implementation of Mariabackup for MariaDB 10.2 2017-07-05 11:43:28 +03:00
encryption_plugin.h MDEV-9566 Port Percona Xtrabackup to MariaDB as mariabackup 2017-04-27 19:12:40 +02:00
fil_cur.cc MDEV-14499 Mariabackup 10.2 fails to back up a multi-file InnoDB system tablespace 2017-11-24 17:12:38 +02:00
fil_cur.h MDEV-12548 Initial implementation of Mariabackup for MariaDB 10.2 2017-07-05 11:43:28 +03:00
innobackupex.cc Mariabackup: Remove unused parameters and fix some memory leaks 2017-07-06 19:14:44 +03:00
innobackupex.h MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
read_filt.cc MDEV-12548 Initial implementation of Mariabackup for MariaDB 10.2 2017-07-05 11:43:28 +03:00
read_filt.h MDEV-12548 Initial implementation of Mariabackup for MariaDB 10.2 2017-07-05 11:43:28 +03:00
write_filt.cc Merge branch '10.1' into 10.2 2017-11-21 19:47:46 +01:00
write_filt.h MDEV-14077 Incremental backup extremly slow 2017-11-09 19:07:05 +00:00
wsrep.cc Merge 10.1 into 10.2 2017-10-25 17:17:21 +03:00
xb0xb.h MDEV-12548 Initial implementation of Mariabackup for MariaDB 10.2 2017-07-05 11:43:28 +03:00
xb_regex.h MDEV-9566 Port Percona Xtrabackup to MariaDB as mariabackup 2017-04-27 19:12:40 +02:00
xbcloud.cc MDEV-9566 Add Percona Xtrabackup 2.3.7 2017-04-27 19:12:39 +02:00
xbstream.c MDEV-13844 : Fix Windows warnings. Fix DBUG_PRINT. 2017-09-28 17:20:46 +00:00
xbstream.h MDEV-12832 : remove libarchive support from mariabackup, 2017-05-21 22:19:06 +00:00
xbstream_read.c Xtrabackup 2.3.8 2017-04-27 19:12:42 +02:00
xbstream_write.c Xtrabackup 2.3.8 2017-04-27 19:12:42 +02:00
xtrabackup.cc MDEV-15270 Mariabackup should not try to use doublewrite buffer 2018-02-12 16:56:01 +02:00
xtrabackup.h MDEV-14499 Mariabackup 10.2 fails to back up a multi-file InnoDB system tablespace 2017-11-24 17:12:38 +02:00