diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2021-10-06 13:49:27 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2021-10-07 11:05:58 +0300 |
commit | d9b933bec6061758c5d7b34f55afcae32a85c110 (patch) | |
tree | f2b4302456eb929c6ba0f075eb612b5f6d004a9f /sql/wsrep_trans_observer.h | |
parent | 96b4a5a6484148778facf95cd8b2be17f47c4da7 (diff) | |
download | mariadb-git-d9b933bec6061758c5d7b34f55afcae32a85c110.tar.gz |
MDEV-24062 : Galera test failure on galera_var_replicate_myisam_on
We should do after_statement only for local transactions.
Diffstat (limited to 'sql/wsrep_trans_observer.h')
-rw-r--r-- | sql/wsrep_trans_observer.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/wsrep_trans_observer.h b/sql/wsrep_trans_observer.h index 8157c14fcdf..55beb6ebe7c 100644 --- a/sql/wsrep_trans_observer.h +++ b/sql/wsrep_trans_observer.h @@ -396,7 +396,14 @@ static inline int wsrep_after_statement(THD* thd) { DBUG_ENTER("wsrep_after_statement"); - DBUG_RETURN(thd->wsrep_cs().state() != wsrep::client_state::s_none ? + WSREP_DEBUG("wsrep_after_statement for %lu client_state %s " + " client_mode %s trans_state %s", + thd_get_thread_id(thd), + wsrep::to_c_string(thd->wsrep_cs().state()), + wsrep::to_c_string(thd->wsrep_cs().mode()), + wsrep::to_c_string(thd->wsrep_cs().transaction().state())); + DBUG_RETURN((thd->wsrep_cs().state() != wsrep::client_state::s_none && + thd->wsrep_cs().mode() == Wsrep_client_state::m_local) ? thd->wsrep_cs().after_statement() : 0); } |