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
c1e5f61b
Commit
c1e5f61b
authored
Jan 20, 2005
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge heikki@bk-internal.mysql.com:/home/bk/mysql-4.1
into hundin.mysql.fi:/home/heikki/mysql-4.1
parents
7885d70b
a5186d05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
innobase/dict/dict0crea.c
innobase/dict/dict0crea.c
+11
-0
innobase/dict/dict0load.c
innobase/dict/dict0load.c
+17
-0
No files found.
innobase/dict/dict0crea.c
View file @
c1e5f61b
...
...
@@ -81,6 +81,17 @@ dict_create_sys_tables_tuple(
dfield_set_data
(
dfield
,
ptr
,
8
);
/* 7: MIX_LEN --------------------------*/
/* Track corruption reported on mailing list Jan 14, 2005 */
if
(
table
->
mix_len
!=
0
&&
table
->
mix_len
!=
0x80000000
)
{
fprintf
(
stderr
,
"InnoDB: Error: mix_len is %lu in table %s
\n
"
,
(
ulong
)
table
->
mix_len
,
table
->
name
);
mem_analyze_corruption
((
byte
*
)
&
(
table
->
mix_len
));
ut_error
;
}
dfield
=
dtuple_get_nth_field
(
entry
,
5
);
ptr
=
mem_heap_alloc
(
heap
,
4
);
...
...
innobase/dict/dict0load.c
View file @
c1e5f61b
...
...
@@ -729,6 +729,7 @@ dict_load_table(
ulint
space
;
ulint
n_cols
;
ulint
err
;
ulint
mix_len
;
mtr_t
mtr
;
#ifdef UNIV_SYNC_DEBUG
...
...
@@ -775,6 +776,22 @@ dict_load_table(
return
(
NULL
);
}
/* Track a corruption bug reported on the MySQL mailing list Jan 14,
2005: mix_len had a value different from 0 */
field
=
rec_get_nth_field
(
rec
,
7
,
&
len
);
ut_a
(
len
==
4
);
mix_len
=
mach_read_from_4
(
field
);
if
(
mix_len
!=
0
&&
mix_len
!=
0x80000000
)
{
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: table %s has a nonsensical mix len %lu
\n
"
,
name
,
(
ulong
)
mix_len
);
}
#if MYSQL_VERSION_ID < 50300
/* Starting from MySQL 5.0.3, the high-order bit of MIX_LEN is the
"compact format" flag. */
...
...
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