summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authormkaruza <mario.karuza@galeracluster.com>2020-03-26 09:45:03 +0100
committerJan Lindström <jan.lindstrom@mariadb.com>2020-03-31 09:59:37 +0300
commit2d16452a31e7c2c99d191f34897e519928541cda (patch)
treefcbdfb9b7d6b4b9a1884644de47eaa7fd5363b80 /sql/log.cc
parent5001487632d60c2d0d9ce5c1be697c016813a994 (diff)
downloadmariadb-git-2d16452a31e7c2c99d191f34897e519928541cda.tar.gz
MDEV-22021: Galera database could get inconsistent with rollback to savepoint
When binlog is disabled, WSREP will not behave correctly when SAVEPOINT ROLLBACK is executed since we don't register handlers for such case. Fixed by registering WSREP handlerton for SAVEPOINT related commands.
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 64da45bfcea..5a6d2fbe24e 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -2209,9 +2209,6 @@ static int binlog_savepoint_set(handlerton *hton, THD *thd, void *sv)
int error= 1;
DBUG_ENTER("binlog_savepoint_set");
- if (wsrep_emulate_bin_log)
- DBUG_RETURN(0);
-
char buf[1024];
String log_query(buf, sizeof(buf), &my_charset_bin);
@@ -2245,9 +2242,6 @@ static int binlog_savepoint_rollback(handlerton *hton, THD *thd, void *sv)
{
DBUG_ENTER("binlog_savepoint_rollback");
- if (wsrep_emulate_bin_log)
- DBUG_RETURN(0);
-
/*
Write ROLLBACK TO SAVEPOINT to the binlog cache if we have updated some
non-transactional table. Otherwise, truncate the binlog cache starting