Browse Source
MDEV-32364 Server crashes when starting server with high innodb_log_buffer_size
MDEV-32364 Server crashes when starting server with high innodb_log_buffer_size
log_t::create(), log_t::attach(): Return whether the initialisation succeeded. It may fail if too large an innodb_log_buffer_size is specified. recv_sys_t::close_files(): Actually close the data files so that the test mariabackup.huge_lsn,strict_crc32 will not fail on Microsoft Windows when renaming ib_logfile101 due to a leaked file handle of ib_logfile0. recv_sys_t::find_checkpoint(): Register recv_sys.files[0] as OS_FILE_CLOSED because the file handle has already been attached to log_sys.log and we do not want to close the file twice. recv_sys_t::read(): Access the first log file via log_sys.log. This is a port of commitpull/2785/head6e9b421f77
adapted to commit685d958e38
(MDEV-14425). The test case is omitted, because it would fail to fail when the log is stored in persistent memory (or "fake PMEM" on Linux /dev/shm).
6 changed files with 107 additions and 29 deletions
-
8extra/mariabackup/xtrabackup.cc
-
23storage/innobase/include/log0log.h
-
4storage/innobase/include/log0recv.h
-
62storage/innobase/log/log0log.cc
-
27storage/innobase/log/log0recv.cc
-
12storage/innobase/srv/srv0start.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue