• Teemu Ollakka's avatar
    MDEV-24255 MTR test galera_bf_abort fails with --ps-protocol · 4601e6e5
    Teemu Ollakka authored
    Under ps-protocol, commandsl like COM_STMT_FETCH, COM_STMT_CLOSE and
    COM_STMT_SEND_LONG_DATA are not supposed to return errors. Therefore,
    if a transaction is BF aborted and the client is processing one of
    those commands, then we should not return a deadlock error
    immediately. Instead wait for the a subsequent client interaction
    which permits errors to be returned. To handle this,
    wsrep_before_command() now accepts parameter keep_command_error. If
    set true, keep_command_error will cause wsrep-lib side to skip result
    handling, and to keep the current error for the next interaction with
    the client.
    Reviewed-by: default avatarJan Lindström <jan.lindstrom@mariadb.com>
    4601e6e5
sql_parse.cc 329 KB