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
6fd6a9a7
Commit
6fd6a9a7
authored
Jan 12, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge serg.mylan:/usr/home/serg/Abk/mysql-4.1
into serg.mylan:/usr/home/serg/Abk/mysql-4.1-bug
parents
042fe0be
f7d4410b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
myisam/mi_check.c
myisam/mi_check.c
+4
-4
No files found.
myisam/mi_check.c
View file @
6fd6a9a7
...
@@ -551,7 +551,7 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
...
@@ -551,7 +551,7 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
ha_checksum
*
key_checksum
,
uint
level
)
ha_checksum
*
key_checksum
,
uint
level
)
{
{
int
flag
;
int
flag
;
uint
used_length
,
comp_flag
,
nod_flag
,
key_length
,
not_used
;
uint
used_length
,
comp_flag
,
nod_flag
,
key_length
=
0
,
not_used
;
uchar
key
[
MI_MAX_POSSIBLE_KEY_BUFF
],
*
temp_buff
,
*
keypos
,
*
old_keypos
,
*
endpos
;
uchar
key
[
MI_MAX_POSSIBLE_KEY_BUFF
],
*
temp_buff
,
*
keypos
,
*
old_keypos
,
*
endpos
;
my_off_t
next_page
,
record
;
my_off_t
next_page
,
record
;
char
llbuff
[
22
];
char
llbuff
[
22
];
...
@@ -586,6 +586,8 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
...
@@ -586,6 +586,8 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
}
}
for
(
;;
)
for
(
;;
)
{
{
memcpy
((
char
*
)
info
->
lastkey
,(
char
*
)
key
,
key_length
);
info
->
lastkey_length
=
key_length
;
if
(
nod_flag
)
if
(
nod_flag
)
{
{
next_page
=
_mi_kpos
(
nod_flag
,
keypos
);
next_page
=
_mi_kpos
(
nod_flag
,
keypos
);
...
@@ -629,8 +631,6 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
...
@@ -629,8 +631,6 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
}
}
(
*
key_checksum
)
+=
mi_byte_checksum
((
byte
*
)
key
,
(
*
key_checksum
)
+=
mi_byte_checksum
((
byte
*
)
key
,
key_length
-
info
->
s
->
rec_reflength
);
key_length
-
info
->
s
->
rec_reflength
);
memcpy
((
char
*
)
info
->
lastkey
,(
char
*
)
key
,
key_length
);
info
->
lastkey_length
=
key_length
;
record
=
_mi_dpos
(
info
,
0
,
key
+
key_length
);
record
=
_mi_dpos
(
info
,
0
,
key
+
key_length
);
if
(
keyinfo
->
flag
&
HA_FULLTEXT
)
/* special handling for ft2 */
if
(
keyinfo
->
flag
&
HA_FULLTEXT
)
/* special handling for ft2 */
{
{
...
@@ -658,7 +658,7 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
...
@@ -658,7 +658,7 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
DBUG_PRINT
(
"test"
,(
"page: %s record: %s filelength: %s"
,
DBUG_PRINT
(
"test"
,(
"page: %s record: %s filelength: %s"
,
llstr
(
page
,
llbuff
),
llstr
(
record
,
llbuff2
),
llstr
(
page
,
llbuff
),
llstr
(
record
,
llbuff2
),
llstr
(
info
->
state
->
data_file_length
,
llbuff3
)));
llstr
(
info
->
state
->
data_file_length
,
llbuff3
)));
DBUG_DUMP
(
"key"
,(
byte
*
)
info
->
last
key
,
key_length
);
DBUG_DUMP
(
"key"
,(
byte
*
)
key
,
key_length
);
DBUG_DUMP
(
"new_in_page"
,(
char
*
)
old_keypos
,(
uint
)
(
keypos
-
old_keypos
));
DBUG_DUMP
(
"new_in_page"
,(
char
*
)
old_keypos
,(
uint
)
(
keypos
-
old_keypos
));
goto
err
;
goto
err
;
}
}
...
...
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