• dlenev@mysql.com's avatar
    Fix for bug #12704 "Server crashes during trigger execution". · e231ebe5
    dlenev@mysql.com authored
    This bug occurs when some trigger for table used by DML statement is created
    or changed while statement was waiting in lock_tables(). In this situation
    prelocking set which we have calculated becames invalid which can easily lead
    to errors and even in some cases to crashes.
    
    With proposed patch we no longer silently reopen tables in lock_tables(),
    instead caller of lock_tables() becomes responsible for reopening tables and
    recalculation of prelocking set.
    e231ebe5
sp.cc 45.3 KB