From 98ac2d425e6e5320afd498882b43e96d79f65f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lindstr=C3=B6m?= Date: Mon, 21 Sep 2020 12:05:18 +0300 Subject: MDEV-21170 : Galera test failure on galera_sr.GCF-1043[A|B] Add error printout when mysql.wsrep_streaming_log lock fails. However, tests are very undeterministic and not suitable for mtr environment. Thus, they are removed. --- sql/wsrep_schema.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sql/wsrep_schema.cc') diff --git a/sql/wsrep_schema.cc b/sql/wsrep_schema.cc index df9c7b78c9b..b1ad718255d 100644 --- a/sql/wsrep_schema.cc +++ b/sql/wsrep_schema.cc @@ -232,6 +232,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); -- cgit v1.2.1