• Marko Mäkelä's avatar
    MDEV-13475 InnoDB: Failing assertion: lsn == log_sys->lsn ||... · 237f23d7
    Marko Mäkelä authored
    MDEV-13475 InnoDB: Failing assertion: lsn == log_sys->lsn || srv_force_recovery == SRV_FORCE_NO_LOG_REDO
    
    At shutdown, we would have lsn == srv_start_lsn == 0 if the server
    was started up in --innodb-read-only mode with an old-format redo log.
    
    This regression was caused by MDEV-13430, which skips some redo log
    processing at startup when the redo log file format differs (and the
    redo log has been determined to be logically empty).
    
    Even though the MDEV-13430 change was introduced in MariaDB 10.2.8,
    the MariaDB Server 10.2 series is unaffected by this, because
    it will refuse to start up from a version-tagged redo log that is
    not tagged to be in the MySQL 5.7.9 or MariaDB 10.2.2 format.
    Starting with MariaDB 10.3.1, there are multiple version-tagged
    redo log formats.
    
    recv_recovery_from_checkpoint_start(): When skipping an empty
    different-format redo log, initialize srv_start_lsn and
    recv_sys->recovered_lsn from the redo log file.
    237f23d7
log0recv.cc 99 KB