• Michael Widenius's avatar
    Fixed bug that another thread used handler->s->id before it was recorded in the log. · ab3e7f9f
    Michael Widenius authored
    This fixed an assert in recovert in mi_recovery.c "cmp_translog_addr(rec->lsn, checkpoint_start) < 0"
    
    storage/maria/ma_loghandler.c:
      Don't assign share->id until it's recorded in the log.
      Had to do an extra test in translog_write_record() to not call translog_assign_id_to_share() for LOGREC_FILE_ID (which sets share->id)
    storage/maria/ma_recovery.c:
      Print comment in log for checkpoints
    ab3e7f9f
ma_loghandler.c 285 KB