• Annamalai Gurusami's avatar
    Bug#13635833: MULTIPLE CRASHES IN FOREIGN KEY CODE WITH CONCURRENT DDL/DML · 7e36c4bd
    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.  
          
    Backporting the fix from MySQL 5.5 to 5.1
    
    rb:961
    rb:947
    7e36c4bd
db0err.h 3.88 KB