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
0031bcfd
Commit
0031bcfd
authored
Aug 28, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into narttu.mysql.fi:/my/mysql-4.0
parents
8a77f970
5c4c294a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
innobase/btr/btr0btr.c
innobase/btr/btr0btr.c
+9
-2
innobase/dict/dict0dict.c
innobase/dict/dict0dict.c
+7
-0
No files found.
innobase/btr/btr0btr.c
View file @
0031bcfd
...
@@ -2376,8 +2376,15 @@ btr_index_rec_validate(
...
@@ -2376,8 +2376,15 @@ btr_index_rec_validate(
type
=
dict_index_get_nth_type
(
index
,
i
);
type
=
dict_index_get_nth_type
(
index
,
i
);
if
(
len
!=
UNIV_SQL_NULL
&&
dtype_is_fixed_size
(
type
)
if
((
dict_index_get_nth_field
(
index
,
i
)
->
prefix_len
==
0
&&
len
!=
dtype_get_fixed_size
(
type
))
{
&&
len
!=
UNIV_SQL_NULL
&&
dtype_is_fixed_size
(
type
)
&&
len
!=
dtype_get_fixed_size
(
type
))
||
(
dict_index_get_nth_field
(
index
,
i
)
->
prefix_len
>
0
&&
len
!=
UNIV_SQL_NULL
&&
dtype_is_fixed_size
(
type
)
&&
len
!=
dict_index_get_nth_field
(
index
,
i
)
->
prefix_len
))
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Record in index %s in table %s, page %lu, at offset %lu
\n
"
"InnoDB: Record in index %s in table %s, page %lu, at offset %lu
\n
"
"InnoDB: field %lu len is %lu, should be %lu
\n
"
,
"InnoDB: field %lu len is %lu, should be %lu
\n
"
,
...
...
innobase/dict/dict0dict.c
View file @
0031bcfd
...
@@ -1596,6 +1596,13 @@ dict_index_build_internal_clust(
...
@@ -1596,6 +1596,13 @@ dict_index_build_internal_clust(
break
;
break
;
}
}
if
(
dict_index_get_nth_field
(
new_index
,
i
)
->
prefix_len
>
0
)
{
new_index
->
trx_id_offset
=
0
;
break
;
}
new_index
->
trx_id_offset
+=
fixed_size
;
new_index
->
trx_id_offset
+=
fixed_size
;
}
}
...
...
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