1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-29989 binlog_do_db option breaks versioning table

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().
This commit is contained in:
Thirunarayanan Balathandayuthapani
2023-09-20 19:45:24 +05:30
parent ca66a2cbfa
commit 952f06aa8b
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1,2 @@
--log_bin
--binlog_do_db=foo