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
74e7990a
Commit
74e7990a
authored
Aug 29, 2011
by
Tor Didriksen
Browse files
Options
Browse Files
Download
Plain Diff
local merge
parents
afba17f1
33aab143
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
storage/innobase/dict/dict0dict.c
storage/innobase/dict/dict0dict.c
+10
-2
storage/innobase/dict/dict0load.c
storage/innobase/dict/dict0load.c
+2
-1
storage/innobase/include/dict0dict.h
storage/innobase/include/dict0dict.h
+2
-1
No files found.
storage/innobase/dict/dict0dict.c
View file @
74e7990a
...
...
@@ -5206,7 +5206,8 @@ UNIV_INTERN
void
dict_set_corrupted_index_cache_only
(
/*================================*/
dict_index_t
*
index
)
/*!< in/out: index */
dict_index_t
*
index
,
/*!< in/out: index */
dict_table_t
*
table
)
/*!< in/out: table */
{
ut_ad
(
index
);
ut_ad
(
mutex_own
(
&
dict_sys
->
mutex
));
...
...
@@ -5216,7 +5217,14 @@ dict_set_corrupted_index_cache_only(
/* Mark the table as corrupted only if the clustered index
is corrupted */
if
(
dict_index_is_clust
(
index
))
{
index
->
table
->
corrupted
=
TRUE
;
dict_table_t
*
corrupt_table
;
corrupt_table
=
table
?
table
:
index
->
table
;
ut_ad
(
!
index
->
table
||
!
table
||
index
->
table
==
table
);
if
(
corrupt_table
)
{
corrupt_table
->
corrupted
=
TRUE
;
}
}
index
->
type
|=
DICT_CORRUPT
;
...
...
storage/innobase/dict/dict0load.c
View file @
74e7990a
...
...
@@ -1497,7 +1497,8 @@ dict_load_indexes(
dictionary cache for such metadata corruption,
since we would always be able to set it
when loading the dictionary cache */
dict_set_corrupted_index_cache_only
(
index
);
dict_set_corrupted_index_cache_only
(
index
,
table
);
fprintf
(
stderr
,
"InnoDB: Index is corrupt but forcing"
...
...
storage/innobase/include/dict0dict.h
View file @
74e7990a
...
...
@@ -1298,7 +1298,8 @@ UNIV_INTERN
void
dict_set_corrupted_index_cache_only
(
/*================================*/
dict_index_t
*
index
);
/*!< in/out: index */
dict_index_t
*
index
,
/*!< in/out: index */
dict_table_t
*
table
);
/*!< in/out: table */
/**********************************************************************//**
Flags a table with specified space_id corrupted in the table dictionary
...
...
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