• sunny's avatar
    branches/zip: Fix bug# 46650: Innodb assertion autoinc_lock == lock in... · 9ac95eac
    sunny authored
    branches/zip: Fix bug# 46650:  Innodb assertion autoinc_lock == lock in lock_table_remove_low on INSERT SELECT
    
    We only store the autoinc locks that are granted in the transaction's autoinc
    lock vector. A transacton, that has been rolled back due to a deadlock because
    of an AUTOINC lock attempt, will not have added that lock to the vector. We
    need to check for that when we remove that lock.
    
    rb://145
    Approved by Marko.
    9ac95eac
lock0lock.c 152 KB