• Marko Mäkelä's avatar
    MDEV-32364 Server crashes when starting server with high innodb_log_buffer_size · c72ddeea
    Marko Mäkelä authored
    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 commit 6e9b421f
    adapted to commit 685d958e (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).
    c72ddeea
xtrabackup.cc 203 KB