• Annamalai Gurusami's avatar
    Bug#13635833: MULTIPLE CRASHES IN FOREIGN KEY CODE WITH CONCURRENT DDL/DML · c1615df3
    Annamalai Gurusami authored
          
    There are two threads.  In one thread, dml operation is going on 
    involving cascaded update operation.  In another thread, alter 
    table add foreign key constraint is happening.  Under these 
    circumstances, it is possible for the dml thread to access a 
    dict_foreign_t object that has been freed by the ddl thread.  
    The debug sync test case provides the sequence of operations.  
    Without fix, the test case will crash the server (because of 
    newly added assert).  With fix, the alter table stmt will return 
    an error message.  
          
    rb:947
    approved by Jimmy Yang
    c1615df3
ha_innodb.cc 342 KB