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
f2215a11
Commit
f2215a11
authored
Nov 10, 2010
by
Jimmy Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug #48026 Log start and end of InnoDB buffer pool initialization
to the error log
rb://513
approved by Sunny Bains
parent
7ade1615
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
9 deletions
+24
-9
storage/innodb_plugin/ChangeLog
storage/innodb_plugin/ChangeLog
+6
-0
storage/innodb_plugin/dict/dict0dict.c
storage/innodb_plugin/dict/dict0dict.c
+9
-2
storage/innodb_plugin/handler/handler0alter.cc
storage/innodb_plugin/handler/handler0alter.cc
+6
-5
storage/innodb_plugin/include/dict0dict.h
storage/innodb_plugin/include/dict0dict.h
+2
-1
storage/innodb_plugin/row/row0merge.c
storage/innodb_plugin/row/row0merge.c
+1
-1
No files found.
storage/innodb_plugin/ChangeLog
View file @
f2215a11
2010-11-10 The InnoDB Team
* dict/dict0dict.c, handler/handler0alter.cc, include/dict0dict.h
row/row0merge.c:
Fix Bug #55084 Innodb crash and corruption after alter table
2010-11-10 The InnoDB Team
* srv/srv0start.c:
...
...
storage/innodb_plugin/dict/dict0dict.c
View file @
f2215a11
...
...
@@ -4842,7 +4842,8 @@ void
dict_table_replace_index_in_foreign_list
(
/*=====================================*/
dict_table_t
*
table
,
/*!< in/out: table */
dict_index_t
*
index
)
/*!< in: index to be replaced */
dict_index_t
*
index
,
/*!< in: index to be replaced */
const
trx_t
*
trx
)
/*!< in: transaction handle */
{
dict_foreign_t
*
foreign
;
...
...
@@ -4853,7 +4854,13 @@ dict_table_replace_index_in_foreign_list(
if
(
foreign
->
foreign_index
==
index
)
{
dict_index_t
*
new_index
=
dict_foreign_find_equiv_index
(
foreign
);
ut_a
(
new_index
);
/* There must exist an alternative index if
check_foreigns (FOREIGN_KEY_CHECKS) is on,
since ha_innobase::prepare_drop_index had done
the check before we reach here. */
ut_a
(
new_index
||
!
trx
->
check_foreigns
);
foreign
->
foreign_index
=
new_index
;
}
...
...
storage/innodb_plugin/handler/handler0alter.cc
View file @
f2215a11
...
...
@@ -1012,12 +1012,13 @@ ha_innobase::prepare_drop_index(
index
->
to_be_dropped
=
TRUE
;
}
/* If FOREIGN_KEY_CHECK = 1 you may not drop an index defined
/* If FOREIGN_KEY_CHECK
S
= 1 you may not drop an index defined
for a foreign key constraint because InnoDB requires that both
tables contain indexes for the constraint. Note that CREATE
INDEX id ON table does a CREATE INDEX and DROP INDEX, and we
can ignore here foreign keys because a new index for the
foreign key has already been created.
tables contain indexes for the constraint. Such index can
be dropped only if FOREIGN_KEY_CHECKS is set to 0.
Note that CREATE INDEX id ON table does a CREATE INDEX and
DROP INDEX, and we can ignore here foreign keys because a
new index for the foreign key has already been created.
We check for the foreign key constraints after marking the
candidate indexes for deletion, because when we check for an
...
...
storage/innodb_plugin/include/dict0dict.h
View file @
f2215a11
...
...
@@ -318,7 +318,8 @@ void
dict_table_replace_index_in_foreign_list
(
/*=====================================*/
dict_table_t
*
table
,
/*!< in/out: table */
dict_index_t
*
index
);
/*!< in: index to be replaced */
dict_index_t
*
index
,
/*!< in: index to be replaced */
const
trx_t
*
trx
);
/*!< in: transaction handle */
/*********************************************************************//**
Checks if a index is defined for a foreign key constraint. Index is a part
of a foreign key constraint if the index is referenced by foreign key
...
...
storage/innodb_plugin/row/row0merge.c
View file @
f2215a11
...
...
@@ -2043,7 +2043,7 @@ row_merge_drop_index(
/* Replace this index with another equivalent index for all
foreign key constraints on this table where this index is used */
dict_table_replace_index_in_foreign_list
(
table
,
index
);
dict_table_replace_index_in_foreign_list
(
table
,
index
,
trx
);
dict_index_remove_from_cache
(
table
,
index
);
trx
->
op_info
=
""
;
...
...
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