• davi@moksha.local's avatar
    Bug#21136 CREATE TABLE SELECT within CREATE TABLE SELECT causes server crash · ae079ec4
    davi@moksha.local authored
    When CREATE TEMPORARY TABLE .. SELECT is invoked from a stored function
    which in turn is called from CREATE TABLE SELECT causes a memory leak
    because the inner create temporary table overrides the outter extra_lock
    reference when locking the table.
    
    The solution is to simply not overrride the extra_lock by only using the
    extra_lock for a non-temporary table lock.
    ae079ec4
sql_insert.cc 121 KB