• Monty's avatar
    Fixed bug in redo handling of batch insert in Aria · bb8c82c6
    Monty authored
    The symptom of the bug was that one got the following in
    the aria recovery log:
    "Table 'xxx', id 57, has create_rename_lsn (1,0x12dee) more recent than LOGREC_FILE_ID's LSN (1,0x12dc4), ignoring open request"
    
    After this all future redo entries was marked with
    "For table of short id 57, table skipped, so skipping record"
    
    Analyze:
    When ending batch insert, create_rename_lsn for the table
    is updated to signal that earlier redo entries for the
    table can't be applied. The problem was that future redo
    entries was also ignored as redo code assumed they where
    for the old table.
    
    Fixed by calling translog_dessign_id, which causes
    future redo entries to be seen as belonging to the
    updated table.
    bb8c82c6
ma_recovery.c 123 KB