Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
447cd7b1
Commit
447cd7b1
authored
Nov 27, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test MDL with a more generic ALTER TABLE statement
parent
ab63290c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
extra/mariabackup/backup_mysql.cc
extra/mariabackup/backup_mysql.cc
+2
-2
No files found.
extra/mariabackup/backup_mysql.cc
View file @
447cd7b1
...
@@ -1656,8 +1656,8 @@ static void check_mdl_lock_works(const char *table_name)
...
@@ -1656,8 +1656,8 @@ static void check_mdl_lock_works(const char *table_name)
MYSQL
*
test_con
=
xb_mysql_connect
();
MYSQL
*
test_con
=
xb_mysql_connect
();
char
*
query
;
char
*
query
;
xb_a
(
asprintf
(
&
query
,
xb_a
(
asprintf
(
&
query
,
"SET STATEMENT max_statement_time=1 FOR ALTER TABLE %s"
"SET STATEMENT max_statement_time=1 FOR ALTER TABLE %s FORCE"
,
" ADD COLUMN mdl_lock_column int"
,
table_name
));
table_name
));
int
err
=
mysql_query
(
test_con
,
query
);
int
err
=
mysql_query
(
test_con
,
query
);
DBUG_ASSERT
(
err
);
DBUG_ASSERT
(
err
);
int
err_no
=
mysql_errno
(
test_con
);
int
err_no
=
mysql_errno
(
test_con
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment