• ingo@mysql.com's avatar
    BUG#5390 - problems with merge tables · c864ac15
    ingo@mysql.com authored
    Additional fix for INSERT DELAYED with subselect.
    Originally detected in 5.1, but 5.0 could also be affected.
    The user thread creates a dummy table object,
    which is not included in the lock. The 'real' table is
    opened and locked by the 'delayed' system thread.
    The dummy object is now marked as not locked and this is
    tested in mysql_lock_have_duplicate().
    c864ac15
sql_insert.cc 77.1 KB