summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorDaniele Sciascia <daniele.sciascia@galeracluster.com>2020-10-15 09:24:01 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2020-10-21 16:29:07 +0300
commitfdf87973cb5246c2edbd11945e65aedb06889bcc (patch)
treeb8380b459490052c66627917fa1f043ec3deab33 /sql/handler.cc
parent7eda55619654b76add275695e0a6039e60876e81 (diff)
downloadmariadb-git-fdf87973cb5246c2edbd11945e65aedb06889bcc.tar.gz
MDEV-23081 Stray XA transactions at startup, with wsrep_on=OFF
Change xarecover_handlerton so that transaction with WSREP prefixed xids are rolled back when Galera is disabled. Reviewd-by: Jan Lindström <jan.lindstrom@mariadb.com>
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 6dc17109ffd..845d288b780 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -2167,7 +2167,7 @@ static my_bool xarecover_handlerton(THD *unused, plugin_ref plugin,
for (int i=0; i < got; i ++)
{
- my_xid x= IF_WSREP(WSREP_ON && wsrep_is_wsrep_xid(&info->list[i]) ?
+ my_xid x= IF_WSREP(wsrep_is_wsrep_xid(&info->list[i]) ?
wsrep_xid_seqno(&info->list[i]) :
info->list[i].get_my_xid(),
info->list[i].get_my_xid());