• Michael Widenius's avatar
    Fix for Bug#36499 Maria: potential deadlock · dd406c1e
    Michael Widenius authored
    This was done by introducing another mutex for handling the key_del link
    I also renamed all key_del variables to start with key_del prefix
    
    
    storage/maria/ma_close.c:
      Rename of key_del variables
    storage/maria/ma_key_recover.c:
      Changed key_del to be protexted by it's own mutex: key_del_lock
      Rename of key_del variables
      Removed comment for old bug
    storage/maria/ma_key_recover.h:
      Rename of key_del variables
    storage/maria/ma_open.c:
      Initialization for new key_del_lock mutex
      Renamed intern_cond to key_del_cond as it was only used for protection of key_del
    storage/maria/ma_page.c:
      Rename of key_del variables
    storage/maria/ma_write.c:
      Rename of key_del variables
    storage/maria/maria_def.h:
      Rename of key_del variables
      Added key_del_lock
    dd406c1e
ma_open.c 63.2 KB