diff options
author | Daniele Sciascia <daniele.sciascia@galeracluster.com> | 2020-08-18 10:47:15 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2020-08-19 13:12:00 +0300 |
commit | 09dd06f14aaf4ba8088f837625020617e5eca7ea (patch) | |
tree | 82954298aea047b10773c46de0d06df448f8a244 /sql/wsrep_mysqld.cc | |
parent | 8a6a0845780a9f8938379cc9e41faf2e3c851abe (diff) | |
download | mariadb-git-09dd06f14aaf4ba8088f837625020617e5eca7ea.tar.gz |
MDEV-22443 wsrep::runtime_error on START TRANSACTION
This happens with global wsrep_on disabled and local wsrep_on enabled.
The fix consists in avoiding sync wait when global wsrep_on is
disabled.
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r-- | sql/wsrep_mysqld.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc index 14be333c107..fab47fc03d0 100644 --- a/sql/wsrep_mysqld.cc +++ b/sql/wsrep_mysqld.cc @@ -1092,7 +1092,7 @@ bool wsrep_must_sync_wait (THD* thd, uint mask) mysql_mutex_lock(&thd->LOCK_thd_data); ret= (thd->variables.wsrep_sync_wait & mask) && thd->wsrep_client_thread && - thd->variables.wsrep_on && + WSREP_ON && thd->variables.wsrep_on && !(thd->variables.wsrep_dirty_reads && !is_update_query(thd->lex->sql_command)) && !thd->in_active_multi_stmt_transaction() && |