• unknown's avatar
    Maria: more log handler fixes for when logs manually deleted · e580e058
    unknown authored
    
    mysql-test/include/maria_empty_logs.inc:
      can now ask that control file be preserved
    mysql-test/lib/mtr_report.pl:
      expected warning (produced by translog_init() when log is missing)
    mysql-test/r/maria-recovery.result:
      result update
    mysql-test/t/maria-recovery.test:
      test of removing logs manually; recovery used to fail
    storage/maria/ma_loghandler.c:
      The addition to maria-recovery.test uncovered a bug: log 1 was
      manually deleted, Maria restarted, created log 2, then crash
      before a checkpoint: logs_found is TRUE, last_checkpoint_lsn
      is LSN_IMPOSSIBLE, so sure_page assumes that log 1 exists;
      using last_logno instead (only the last log needs to be checked,
      as the 'else' branch checks only after last_checkpoint_lsn:
      creation of a log is as good a starting point as a checkpoint,
      for scanning the log).
    e580e058
maria-recovery.test 7.26 KB