• Srinidhi Kaushik's avatar
    MDEV-24197: Add "innodb_force_recovery" for "mariabackup --prepare" · 5bc5ecce
    Srinidhi Kaushik authored
    During the prepare phase of restoring backups, "mariabackup" does
    not seem to allow (or recognize) the option "innodb_force_recovery"
    for the embedded InnoDB server instance that it starts.
    
    If page corruption observed during page recovery, the prepare step
    fails. While this is indeed the correct behavior ideally, allowing
    this option to be set in case of emergencies might be useful when
    the current backup is the only copy available. Some error messages
    during "--prepare" suggest to set "innodb_force_recovery" to 1:
    
      [ERROR] InnoDB: Set innodb_force_recovery=1 to ignore corruption.
    
    For backwards compatibility, "mariabackup --innobackupex --apply-log"
    should also have this option.
    Signed-off-by: default avatarSrinidhi Kaushik <shrinidhi.kaushik@gmail.com>
    5bc5ecce
srv0start.cc 81.2 KB