Skip to content

Commit

Permalink
Test MDL with a more generic ALTER TABLE statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Nov 27, 2017
1 parent ab63290 commit 447cd7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/mariabackup/backup_mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 447cd7b

Please sign in to comment.