• Thirunarayanan Balathandayuthapani's avatar
    MDEV-29989 binlog_do_db option breaks versioning table · 952f06aa
    Thirunarayanan Balathandayuthapani authored
    Problem:
    =========
    During commit, server calls prepare_commit_versioned to
    determine the transaction modified system-versioned data.
    Due to binlog_do_db option, we disable the binlog for the
    statement. But prepare_commit_versioned() is being
    called only when binlog is enabled for the statement.
    
    Fix:
    ===
    prepare_commit_versioned() should happen irrespective
    of binlog state. So if the server has any read-write operation
    then we should call prepare_commit_versioned().
    952f06aa
handler.cc 235 KB