summaryrefslogtreecommitdiff
path: root/sql/wsrep_thd.cc
diff options
context:
space:
mode:
authorPhilip Stoev <philip.stoev@galeracluster.com>2015-10-19 01:56:04 -0700
committerPhilip Stoev <philip.stoev@galeracluster.com>2015-10-19 01:56:04 -0700
commit43b2a451fe62e7a1172fa3d611039b3d11c1dd36 (patch)
treea87a75a184a534014706d57ad693850ee9840d8b /sql/wsrep_thd.cc
parent4d33f9dca027e1f66f9898146533e8c1d612f2d1 (diff)
downloadmariadb-git-43b2a451fe62e7a1172fa3d611039b3d11c1dd36.tar.gz
refs codership/mysql-wsrep#202 Added schema info into wsrep messages
Added schema info to wsrep messages above debug level.
Diffstat (limited to 'sql/wsrep_thd.cc')
-rw-r--r--sql/wsrep_thd.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc
index 776a640cabe..464a68a8221 100644
--- a/sql/wsrep_thd.cc
+++ b/sql/wsrep_thd.cc
@@ -274,8 +274,10 @@ void wsrep_replay_transaction(THD *thd)
wsrep->post_rollback(wsrep, &thd->wsrep_ws_handle);
break;
default:
- WSREP_ERROR("trx_replay failed for: %d, query: %s",
- rcode, thd->query() ? thd->query() : "void");
+ WSREP_ERROR("trx_replay failed for: %d, schema: %s, query: %s",
+ rcode,
+ (thd->db ? thd->db : "(null)"),
+ thd->query() ? thd->query() : "void");
/* we're now in inconsistent state, must abort */
/* http://bazaar.launchpad.net/~codership/codership-mysql/5.6/revision/3962#sql/wsrep_thd.cc */