• irana's avatar
    branches/innodb+ rb://257 · eb6e2444
    irana authored
    When a transaction joins we check if there are any other transactions
    waiting on its locks. If there aren't any waiting then no deadlock can
    occur.  This patch however has additional changes.
    
     1. Count leading zeros
     2. Count trailing zeros
    
    There are two version of both these utility functions. One is hand
    coded and the other will use the GCC builtin when available. The
    changes to configure have yet to be made.
    
    Simplify the next record lock fetch in the deadlock check code.
    
    Pass the heap number as a parameter to the deadlock check code.
    
    Written by: Sunny
    eb6e2444
lock0lock.c 162 KB