• Vladislav Vaintroub's avatar
    MDEV-16308 : protocol messed up sporadically · b08579aa
    Vladislav Vaintroub authored
    Context involves semicolon batching, and the error starts 10.2
    No reproducible examples were made yet, but TCP trace suggests
    multiple packets that are "squeezed" together (e.g overlong OK packet
    that has a trailer which is belongs to another packet)
    
    Remove thd->get_stmt_da()->set_skip_flush() when processing a batch.
    skip_flush stems from the COM_MULTI code, which was checked in during
    10.2 (and is never used)
    
    The fix is confirmed to work, when evaluated by bug reporter (one of them)
    
    We never reproduced it locally, with multiple tries
    thus the root cause analysis is still missing.
    b08579aa
sql_parse.cc 316 KB