summaryrefslogtreecommitdiff
path: root/sql/wsrep_schema.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-09-23 11:32:43 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-09-23 11:32:43 +0300
commit882ce206dbf06b771ffe4cbce2e3e4214982f302 (patch)
tree63b3d1314bf9ab4d8c7fe314818c6349c127f877 /sql/wsrep_schema.cc
parent6ab6b1510ed0851bda335a8919047c02860fe2e8 (diff)
parentd7c82610c14f5102258640c73c1d78ea22f942c3 (diff)
downloadmariadb-git-882ce206dbf06b771ffe4cbce2e3e4214982f302.tar.gz
Merge 10.4 into 10.5
Diffstat (limited to 'sql/wsrep_schema.cc')
-rw-r--r--sql/wsrep_schema.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/wsrep_schema.cc b/sql/wsrep_schema.cc
index 7eb165440c9..9f568226079 100644
--- a/sql/wsrep_schema.cc
+++ b/sql/wsrep_schema.cc
@@ -251,6 +251,11 @@ static int open_table(THD* thd,
NULL, lock_type);
if (!open_n_lock_single_table(thd, &tables, tables.lock_type, flags)) {
+ if (thd->is_error()) {
+ WSREP_WARN("Can't lock table %s.%s : %d (%s)",
+ schema_name->str, table_name->str,
+ thd->get_stmt_da()->sql_errno(), thd->get_stmt_da()->message());
+ }
close_thread_tables(thd);
my_error(ER_NO_SUCH_TABLE, MYF(0), schema_name->str, table_name->str);
DBUG_RETURN(1);