From 447cd7b1afa02934806c64e6939dbf973468438b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Mon, 27 Nov 2017 10:06:37 +0200 Subject: [PATCH] Test MDL with a more generic ALTER TABLE statement --- extra/mariabackup/backup_mysql.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/mariabackup/backup_mysql.cc b/extra/mariabackup/backup_mysql.cc index aa683e320fc..40701682139 100644 --- a/extra/mariabackup/backup_mysql.cc +++ b/extra/mariabackup/backup_mysql.cc @@ -1656,8 +1656,8 @@ static void check_mdl_lock_works(const char *table_name) MYSQL *test_con= xb_mysql_connect(); char *query; xb_a(asprintf(&query, - "SET STATEMENT max_statement_time=1 FOR ALTER TABLE %s" - " ADD COLUMN mdl_lock_column int", table_name)); + "SET STATEMENT max_statement_time=1 FOR ALTER TABLE %s FORCE", + table_name)); int err = mysql_query(test_con, query); DBUG_ASSERT(err); int err_no = mysql_errno(test_con);