• unknown's avatar
    BUG#20637: "load data concurrent infile" locks the table · c707c7ea
    unknown authored
    Note that we ignore CONCURRENT if LOAD DATA CONCURRENT is used from
    inside a stored routine and MySQL is compiled with Query Cache support
    (this is not in the manual).
    
    The problem was that the condition test of "we are inside stored routine"
    was reversed, thus CONCURRENT _worked only_ from stored routine.  The
    solution is to use proper condition test.
    
    No test case is provided because the test case would require a large
    amount of input, and it's hard to tell is SELECT is really blocked or
    just slow (subject to race).
    
    
    sql/sql_yacc.yy:
      Fix the condition of TL_WRITE_CONCURRENT_INSERT on LOAD DATA CONCURRENT,
      which was reversed, and return valid value if we are in SP.
    c707c7ea
sql_yacc.yy 242 KB