diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-21 11:04:04 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-21 11:04:04 +0300 |
commit | cbcb4ecabbb82a09794d825ca246d64e3d4b2c8c (patch) | |
tree | b8fab11441c9080cbd3574a26c3eee10df58aaed /sql/wsrep_thd.cc | |
parent | ade782c001affa69df80ed51e807e16198a9fe04 (diff) | |
parent | 69d536a22dc1988e89697c55549fc3c272fbbf2c (diff) | |
download | mariadb-git-cbcb4ecabbb82a09794d825ca246d64e3d4b2c8c.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'sql/wsrep_thd.cc')
-rw-r--r-- | sql/wsrep_thd.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc index 9515fd550f2..d00183abc80 100644 --- a/sql/wsrep_thd.cc +++ b/sql/wsrep_thd.cc @@ -875,3 +875,23 @@ bool wsrep_is_load_multi_commit(THD *thd) { return thd->wsrep_split_flag; } + +void wsrep_report_bf_lock_wait(THD *thd, + unsigned long long trx_id) +{ + if (thd) + { + WSREP_ERROR("Thread %s trx_id: %llu thread: %ld " + "seqno: %lld query_state: %s conf_state: %s exec_mode: %s " + "applier: %d query: %s", + wsrep_thd_is_BF(thd, false) ? "BF" : "normal", + trx_id, + thd_get_thread_id(thd), + wsrep_thd_trx_seqno(thd), + wsrep_thd_query_state_str(thd), + wsrep_thd_conflict_state_str(thd), + wsrep_thd_exec_mode_str(thd), + thd->wsrep_applier, + wsrep_thd_query(thd)); + } +} |