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
d48d5681
Commit
d48d5681
authored
May 10, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Fix assertion failure for orphaned tables in DROP DATABASE
parent
dd9a517e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
innobase/row/row0mysql.c
innobase/row/row0mysql.c
+3
-2
No files found.
innobase/row/row0mysql.c
View file @
d48d5681
...
@@ -2208,10 +2208,11 @@ row_drop_database_for_mysql(
...
@@ -2208,10 +2208,11 @@ row_drop_database_for_mysql(
dict_table_t
*
table
;
dict_table_t
*
table
;
char
*
table_name
;
char
*
table_name
;
int
err
=
DB_SUCCESS
;
int
err
=
DB_SUCCESS
;
ulint
namelen
=
strlen
(
name
);
ut_ad
(
trx
->
mysql_thread_id
==
os_thread_get_curr_id
());
ut_ad
(
trx
->
mysql_thread_id
==
os_thread_get_curr_id
());
ut_a
(
name
!=
NULL
);
ut_a
(
name
!=
NULL
);
ut_a
(
name
[
strlen
(
name
)
-
1
]
==
'/'
);
ut_a
(
name
[
namelen
-
1
]
==
'/'
);
trx
->
op_info
=
(
char
*
)
"dropping database"
;
trx
->
op_info
=
(
char
*
)
"dropping database"
;
...
@@ -2220,7 +2221,7 @@ row_drop_database_for_mysql(
...
@@ -2220,7 +2221,7 @@ row_drop_database_for_mysql(
row_mysql_lock_data_dictionary
(
trx
);
row_mysql_lock_data_dictionary
(
trx
);
while
((
table_name
=
dict_get_first_table_name_in_db
(
name
)))
{
while
((
table_name
=
dict_get_first_table_name_in_db
(
name
)))
{
ut_a
(
strcmp
(
table_name
,
name
)
==
0
);
ut_a
(
memcmp
(
table_name
,
name
,
namelen
)
==
0
);
table
=
dict_table_get_low
(
table_name
);
table
=
dict_table_get_low
(
table_name
);
...
...
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