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
dfc15e2a
Commit
dfc15e2a
authored
Feb 03, 2010
by
Konstantin Osipov
Browse files
Options
Browse Files
Download
Plain Diff
Merge next-4284 -> next-4284-merge.
parents
b7a80c67
0ede7125
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
mysql-test/r/repair.result
mysql-test/r/repair.result
+14
-0
mysql-test/t/repair.test
mysql-test/t/repair.test
+15
-0
sql/sql_table.cc
sql/sql_table.cc
+2
-0
No files found.
mysql-test/r/repair.result
View file @
dfc15e2a
...
@@ -169,3 +169,17 @@ test.t1 repair Error Table 't1' was locked with a READ lock and can't be updated
...
@@ -169,3 +169,17 @@ test.t1 repair Error Table 't1' was locked with a READ lock and can't be updated
test.t1 repair status Operation failed
test.t1 repair status Operation failed
UNLOCK TABLES;
UNLOCK TABLES;
DROP TABLE t1;
DROP TABLE t1;
#
# Test for bug #50784 "MDL: Assertion `m_tickets.is_empty() ||
# m_tickets.front() == m_trans_sentinel'"
#
drop tables if exists t1, t2;
create table t1 (i int);
create table t2 (j int);
set @@autocommit= 0;
repair table t1, t2;
Table Op Msg_type Msg_text
test.t1 repair status OK
test.t2 repair status OK
set @@autocommit= default;
drop tables t1, t2;
mysql-test/t/repair.test
View file @
dfc15e2a
...
@@ -173,3 +173,18 @@ REPAIR TABLE t1;
...
@@ -173,3 +173,18 @@ REPAIR TABLE t1;
UNLOCK
TABLES
;
UNLOCK
TABLES
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Test for bug #50784 "MDL: Assertion `m_tickets.is_empty() ||
--
echo
# m_tickets.front() == m_trans_sentinel'"
--
echo
#
--
disable_warnings
drop
tables
if
exists
t1
,
t2
;
--
enable_warnings
create
table
t1
(
i
int
);
create
table
t2
(
j
int
);
set
@@
autocommit
=
0
;
repair
table
t1
,
t2
;
set
@@
autocommit
=
default
;
drop
tables
t1
,
t2
;
sql/sql_table.cc
View file @
dfc15e2a
...
@@ -5031,6 +5031,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
...
@@ -5031,6 +5031,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
trans_commit_stmt
(
thd
);
trans_commit_stmt
(
thd
);
trans_commit_implicit
(
thd
);
trans_commit_implicit
(
thd
);
close_thread_tables
(
thd
);
close_thread_tables
(
thd
);
thd
->
mdl_context
.
release_transactional_locks
();
table
->
table
=
0
;
// For query cache
table
->
table
=
0
;
// For query cache
/*
/*
...
@@ -5060,6 +5061,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
...
@@ -5060,6 +5061,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
trans_rollback_stmt
(
thd
);
trans_rollback_stmt
(
thd
);
trans_rollback
(
thd
);
trans_rollback
(
thd
);
close_thread_tables
(
thd
);
// Shouldn't be needed
close_thread_tables
(
thd
);
// Shouldn't be needed
thd
->
mdl_context
.
release_transactional_locks
();
if
(
table
)
if
(
table
)
table
->
table
=
0
;
table
->
table
=
0
;
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
...
...
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