• Marko Mäkelä's avatar
    Fix a race between TRUNCATE and FOREIGN KEY check · 62ee2cd4
    Marko Mäkelä authored
    This is a port of an Oracle fix.
    
    No test case was provided by Oracle. It seems that to exploit this
    bug, one would have to SET foreign_key_checks=0 before TRUNCATE,
    and to concurrently run some DML statement that causes a foreign key
    constraint to be checked.
    
    commit 1f24c5aa2843fa548aa5c4b29c00f955e03e9f5b
    Author: Aditya A <aditya.a@oracle.com>
    Date:   Fri May 18 12:32:37 2018 +0530
    
        Bug #27208858 CONCURRENT DDL/DML ON FOREIGN KEYS CRASH IN
        PAGE_CUR_SEARCH_WITH_MATCH_BYTES
    62ee2cd4
row0ins.cc 103 KB