summaryrefslogtreecommitdiff
path: root/sql/wsrep_var.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_var.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_var.cc')
-rw-r--r--sql/wsrep_var.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc
index bbfa79ac3fd..a3366000fc5 100644
--- a/sql/wsrep_var.cc
+++ b/sql/wsrep_var.cc
@@ -512,14 +512,18 @@ bool wsrep_desync_update (sys_var *self, THD* thd, enum_var_type type)
if (wsrep_desync) {
ret = wsrep->desync (wsrep);
if (ret != WSREP_OK) {
- WSREP_WARN ("SET desync failed %d for %s", ret, thd->query());
+ WSREP_WARN ("SET desync failed %d for schema: %s, query: %s", ret,
+ (thd->db ? thd->db : "(null)"),
+ thd->query());
my_error (ER_CANNOT_USER, MYF(0), "'desync'", thd->query());
return true;
}
} else {
ret = wsrep->resync (wsrep);
if (ret != WSREP_OK) {
- WSREP_WARN ("SET resync failed %d for %s", ret, thd->query());
+ WSREP_WARN ("SET resync failed %d for schema: %s, query: %s", ret,
+ (thd->db ? thd->db : "(null)"),
+ thd->query());
my_error (ER_CANNOT_USER, MYF(0), "'resync'", thd->query());
return true;
}