• Michael Widenius's avatar
    Optimize mutex usage. · cfd2725d
    Michael Widenius authored
    storage/maria/ma_blockrec.c:
      Unlock bitmaps earlier (no reason to have them unlocked over _ma_write_clr())
    storage/maria/ma_extra.c:
      Don't lock THR_LOCK_maria for HA_EXTRA_PREPARE_FOR_RENAME (upper level ensures that we are not opening the same table during this call)
      We don't need to have share->intern_lock locked over _ma_flush_table_files()
    storage/maria/ma_open.c:
      Update comment
    cfd2725d
ma_extra.c 21.3 KB