• gkodinov@mysql.com's avatar
    Bug #20195: INSERT DELAYED with auto_increment is assigned wrong values · 8d94b8ca
    gkodinov@mysql.com authored
    The INSERT DELAYED should not maintain its own private auto-increment
    counter, because this is assuming that other threads cannot insert
    into the table while the INSERT DELAYED thread is inserting, which is
    a wrong assumption.
    
    So the start of processing of a batch of INSERT rows in the 
    INSERT DELAYED thread must be treated as a start of a new statement
    and cached next_insert_id must be cleared.
    8d94b8ca
delayed.result 1.77 KB