• Jan Lindström's avatar
    MDEV-34594 : Assertion `client_state.transaction().active()' failed in · cd8b8bb9
    Jan Lindström authored
    int wsrep_thd_append_key(THD*, const wsrep_key*, int, Wsrep_service_key_type)
    
    CREATE TABLE [SELECT|REPLACE SELECT] is CTAS and idea was that
    we force ROW format. However, it was not correctly enforced
    and keys were appended before wsrep transaction was started.
    
    At THD::decide_logging_format we should force used stmt binlog
    format to ROW in CTAS case and produce a warning if used
    binlog format was not ROW.
    
    At ha_innodb::update_row we should not append keys similarly
    as in ha_innodb::write_row if sql_command is SQLCOM_CREATE_TABLE.
    Improved error logging on ::write_row, ::update_row and ::delete_row
    if wsrep key append fails.
    Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
    cd8b8bb9
MDEV-34594.result 2.28 KB