summaryrefslogtreecommitdiff
path: root/sql/wsrep_trans_observer.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-10-13 15:17:20 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-10-13 15:17:20 +0300
commit607de9c7ac53c3fbf0e92ca7a2c505014cd4e4de (patch)
treedc693144390fe5cf42f68e9358c5d8aad2278998 /sql/wsrep_trans_observer.h
parenta8379e53e8fa2f0c091daaf28b095d652e224952 (diff)
parentf1acd9f14bd054b8d8d576c6fe567226c097132d (diff)
downloadmariadb-git-607de9c7ac53c3fbf0e92ca7a2c505014cd4e4de.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'sql/wsrep_trans_observer.h')
-rw-r--r--sql/wsrep_trans_observer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/wsrep_trans_observer.h b/sql/wsrep_trans_observer.h
index e3e076631c7..c4528b8ef2a 100644
--- a/sql/wsrep_trans_observer.h
+++ b/sql/wsrep_trans_observer.h
@@ -426,7 +426,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->internal_transaction() ?
thd->wsrep_cs().after_statement() : 0);
}