mariadb/storage/innobase
Marko Mäkelä 81a5b6ccd5 MDEV-17433 Allow InnoDB start up with empty ib_logfile0 from mariabackup --prepare
A prepared backup from Mariabackup does not really need to contain any
redo log file, because all log will have been applied to the data files.

When the user copies a prepared backup to a data directory (overwriting
existing files), it could happen that the data directory already contained
redo log files from the past. mariabackup --copy-back) would delete the
old redo log files, but a user’s own copying script might not do that.
To prevent corruption caused by mixing an old redo log file with data
files from a backup, starting with MDEV-13311, Mariabackup would create
a zero-length ib_logfile0 that would prevent startup.

Actually, there is no need to prevent InnoDB from starting up when a
single zero-length file ib_logfile0 is present. Only if there exist
multiple data files of different lengths, then we should refuse to
start up due to inconsistency. A single zero-length ib_logfile0 should
be treated as if the log files were missing: create new log files
according to the configuration.

open_log_file(): Remove. There is no need to open the log files
at this point, because os_file_get_status() already determined
the size of the file.

innobase_start_or_create_for_mysql(): Move the creation of new
log files a little later, not when finding out that the first log
file does not exist, but after finding out that it does not exist
or it exists as a zero-length file.
2018-10-11 23:00:48 +03:00
..
btr Merge branch '10.1' into 10.2 2018-09-14 08:47:22 +02:00
buf MDEV-13564 Mariabackup does not work with TRUNCATE 2018-09-07 22:10:02 +03:00
data Merge branch 'github/10.1' into 10.2 2018-02-06 14:50:50 +01:00
dict MDEV-13564: Implement innodb_unsafe_truncate=ON for compatibility 2018-10-11 08:17:04 +03:00
eval MDEV-12271 Port MySQL 8.0 Bug#23150562 REMOVE UNIV_MUST_NOT_INLINE AND UNIV_NONINL 2017-03-17 12:42:07 +02:00
fil MDEV-13564: Implement innodb_unsafe_truncate=ON for compatibility 2018-10-11 08:17:04 +03:00
fsp MDEV-13564: Implement innodb_unsafe_truncate=ON for compatibility 2018-10-11 08:17:04 +03:00
fts MDEV-13564 Mariabackup does not work with TRUNCATE 2018-09-07 22:10:02 +03:00
fut MDEV-12270 Port MySQL 8.0 Bug#21141390 REMOVE UNUSED FUNCTIONS AND CONVERT GLOBAL SYMBOLS TO STATIC 2017-03-17 12:48:50 +02:00
gis Fix -Wclass-memaccess warnings in InnoDB 2018-08-03 13:06:03 +03:00
ha Skip btr_search_latches[] in SHOW ENGINE INNODB STATUS 2017-12-12 20:00:28 +02:00
handler MDEV-13564: Replace innodb_unsafe_truncate with innodb_safe_truncate 2018-10-11 15:10:13 +03:00
ibuf MDEV-13564 Mariabackup does not work with TRUNCATE 2018-09-07 22:10:02 +03:00
include MDEV-13564: Replace innodb_unsafe_truncate with innodb_safe_truncate 2018-10-11 15:10:13 +03:00
lock MDEV-13564 Mariabackup does not work with TRUNCATE 2018-09-07 22:10:02 +03:00
log MDEV-13564: Replace innodb_unsafe_truncate with innodb_safe_truncate 2018-10-11 15:10:13 +03:00
mach Fix Bug#24707869 GCC 5 AND 6 MISCOMPILE MACH_PARSE_COMPRESSED 2017-04-26 23:03:29 +03:00
mem Merge 10.1 into 10.2 2018-03-21 22:58:52 +02:00
mtr Report InnoDB redo log corruption better 2018-08-10 13:02:01 +03:00
mysql-test/storage_engine Merge branch '10.0' into 10.1 2017-08-08 10:18:43 +02:00
os MDEV-13564 Mariabackup does not work with TRUNCATE 2018-09-07 22:10:02 +03:00
page MDEV-16868 Same query gives different results 2018-08-24 09:38:52 +03:00
pars Remove unused parameters and dead code 2017-09-29 16:19:28 +03:00
que Dead code removal: sess_t 2018-02-15 15:00:46 +00:00
read Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
rem Merge tag 'mariadb-5.5.60' into 5.5-galera 2018-04-24 13:34:57 +03:00
row MDEV-13564: Replace innodb_unsafe_truncate with innodb_safe_truncate 2018-10-11 15:10:13 +03:00
srv MDEV-17433 Allow InnoDB start up with empty ib_logfile0 from mariabackup --prepare 2018-10-11 23:00:48 +03:00
sync MDEV-17306 rw_lock_x_lock_wait_func() double increments rw_x_spin_round_count 2018-09-27 17:57:27 +03:00
trx MDEV-13564: Replace innodb_unsafe_truncate with innodb_safe_truncate 2018-10-11 15:10:13 +03:00
ut ut_print_buf_hex(): Correctly dump the hex 2018-07-23 17:49:01 +03:00
bzip2.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
CMakeLists.txt Merge tag 'mariadb-10.0.35' into 10.0-galera 2018-05-07 17:20:39 +03:00
compile-innodb
COPYING.Google
COPYING.Percona
innodb.cmake Fix misuse of MY_CHECK_CXX_COMPILER_FLAG 2018-04-05 17:45:36 +04:00
lz4.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
lzma.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
lzo.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
plugin_exports
snappy.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00