summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorLeandro Pacheco <leandro.pacheco@galeracluster.com>2021-07-20 12:45:00 -0300
committerJan Lindström <jan.lindstrom@mariadb.com>2021-07-27 08:11:41 +0300
commit2b84e1c9667df5ff9a7b1f4da934e57490b32630 (patch)
treef6221fd502e3f2fbe57fe5ba7d012666908739a0 /sql/sql_class.cc
parent389f5cf76fa2bd5e3dacd074395db4d0ef59c9f2 (diff)
downloadmariadb-git-2b84e1c9667df5ff9a7b1f4da934e57490b32630.tar.gz
MDEV-23080: desync and pause node on BACKUP STAGE BLOCK_DDL
make BACKUP STAGE behave as FTWRL, desyncing and pausing the node to prevent BF threads (appliers) from interfering with blocking stages. This is needed because BF threads don't respect BACKUP MDL locks. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 7e43605b047..8aaa0ebbe71 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -1281,6 +1281,7 @@ void THD::init()
m_wsrep_next_trx_id = WSREP_UNDEFINED_TRX_ID;
wsrep_replicate_GTID = false;
wsrep_aborter = 0;
+ wsrep_desynced_backup_stage= false;
#endif /* WITH_WSREP */
if (variables.sql_log_bin)