• Teemu Ollakka's avatar
    MDEV-23872 Crash in galera::TrxHandle::state() · 4489b66a
    Teemu Ollakka authored
    Prepared statements which were run over binary protocol crashed
    a server if the statement did not have CF_PS_ARRAY_BINDING_OPTIMIZED
    flag and the statement was executed in bulk mode and a BF abort occrurred.
    This was because the bulk execution resulted in several statements without
    calling wsrep_after_statement() between, which confused wsrep transaction
    state tracking.
    
    As a fix, call wsrep_after_statement() in bulk loop after each execution
    if CF_PS_ARRAY_BINDING_OPTIMIZED is not set.
    Reviewed-by: default avatarJan Lindström <jan.lindstrom@mariadb.com>
    4489b66a
sql_prepare.cc 156 KB