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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
91bd28c2
Commit
91bd28c2
authored
Feb 28, 2012
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1 to mysql-5.5.
parents
29e12cae
26ed79ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
storage/innobase/row/row0mysql.c
storage/innobase/row/row0mysql.c
+12
-12
No files found.
storage/innobase/row/row0mysql.c
View file @
91bd28c2
...
@@ -3283,6 +3283,18 @@ check_next_foreign:
...
@@ -3283,6 +3283,18 @@ check_next_foreign:
trx_set_dict_operation
(
trx
,
TRX_DICT_OP_TABLE
);
trx_set_dict_operation
(
trx
,
TRX_DICT_OP_TABLE
);
trx
->
table_id
=
table
->
id
;
trx
->
table_id
=
table
->
id
;
/* Mark all indexes unavailable in the data dictionary cache
before starting to drop the table. */
for
(
index
=
dict_table_get_first_index
(
table
);
index
!=
NULL
;
index
=
dict_table_get_next_index
(
index
))
{
rw_lock_x_lock
(
dict_index_get_lock
(
index
));
ut_ad
(
!
index
->
to_be_dropped
);
index
->
to_be_dropped
=
TRUE
;
rw_lock_x_unlock
(
dict_index_get_lock
(
index
));
}
/* We use the private SQL parser of Innobase to generate the
/* We use the private SQL parser of Innobase to generate the
query graphs needed in deleting the dictionary data from system
query graphs needed in deleting the dictionary data from system
tables in Innobase. Deleting a row from SYS_INDEXES table also
tables in Innobase. Deleting a row from SYS_INDEXES table also
...
@@ -3369,18 +3381,6 @@ check_next_foreign:
...
@@ -3369,18 +3381,6 @@ check_next_foreign:
"END;
\n
"
"END;
\n
"
,
FALSE
,
trx
);
,
FALSE
,
trx
);
/* Mark all indexes unavailable in the data dictionary cache
before starting to drop the table. */
for
(
index
=
dict_table_get_first_index
(
table
);
index
!=
NULL
;
index
=
dict_table_get_next_index
(
index
))
{
rw_lock_x_lock
(
dict_index_get_lock
(
index
));
ut_ad
(
!
index
->
to_be_dropped
);
index
->
to_be_dropped
=
TRUE
;
rw_lock_x_unlock
(
dict_index_get_lock
(
index
));
}
switch
(
err
)
{
switch
(
err
)
{
ibool
is_temp
;
ibool
is_temp
;
const
char
*
name_or_path
;
const
char
*
name_or_path
;
...
...
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