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
be1bbf94
Commit
be1bbf94
authored
Apr 11, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
f356fb08
0294339b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
myisam/mi_check.c
myisam/mi_check.c
+5
-2
myisam/mi_dynrec.c
myisam/mi_dynrec.c
+4
-7
myisam/myisamdef.h
myisam/myisamdef.h
+1
-1
No files found.
myisam/mi_check.c
View file @
be1bbf94
...
...
@@ -971,7 +971,8 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
info
->
checksum
=
mi_checksum
(
info
,
record
);
if
(
param
->
testflag
&
(
T_EXTEND
|
T_MEDIUM
|
T_VERBOSE
))
{
if
(
_mi_rec_check
(
info
,
record
,
info
->
rec_buff
,
block_info
.
rec_len
))
if
(
_mi_rec_check
(
info
,
record
,
info
->
rec_buff
,
block_info
.
rec_len
,
test
(
info
->
s
->
calc_checksum
)))
{
mi_check_print_error
(
param
,
"Found wrong packed record at %s"
,
llstr
(
start_recpos
,
llbuff
));
...
...
@@ -3024,7 +3025,9 @@ static int sort_get_next_record(MI_SORT_PARAM *sort_param)
if
((
param
->
testflag
&
(
T_EXTEND
|
T_REP
))
||
searching
)
{
if
(
_mi_rec_check
(
info
,
sort_param
->
record
,
sort_param
->
rec_buff
,
sort_param
->
find_length
))
sort_param
->
find_length
,
(
param
->
testflag
&
T_QUICK
)
&&
test
(
info
->
s
->
calc_checksum
)))
{
mi_check_print_info
(
param
,
"Found wrong packed record at %s"
,
llstr
(
sort_param
->
start_recpos
,
llbuff
));
...
...
myisam/mi_dynrec.c
View file @
be1bbf94
...
...
@@ -806,7 +806,7 @@ uint _mi_rec_pack(MI_INFO *info, register byte *to, register const byte *from)
*/
my_bool
_mi_rec_check
(
MI_INFO
*
info
,
const
char
*
record
,
byte
*
rec_buff
,
ulong
packed_length
)
ulong
packed_length
,
my_bool
with_checksum
)
{
uint
length
,
new_length
,
flag
,
bit
,
i
;
char
*
pos
,
*
end
,
*
packpos
,
*
to
;
...
...
@@ -901,13 +901,10 @@ my_bool _mi_rec_check(MI_INFO *info,const char *record, byte *rec_buff,
if
(
packed_length
!=
(
uint
)
(
to
-
rec_buff
)
+
test
(
info
->
s
->
calc_checksum
)
||
(
bit
!=
1
&&
(
flag
&
~
(
bit
-
1
))))
goto
err
;
if
(
info
->
s
->
calc_checksum
)
if
(
with_checksum
&&
((
uchar
)
info
->
checksum
!=
(
uchar
)
*
to
)
)
{
if
((
uchar
)
info
->
checksum
!=
(
uchar
)
*
to
)
{
DBUG_PRINT
(
"error"
,(
"wrong checksum for row"
));
goto
err
;
}
DBUG_PRINT
(
"error"
,(
"wrong checksum for row"
));
goto
err
;
}
DBUG_RETURN
(
0
);
...
...
myisam/myisamdef.h
View file @
be1bbf94
...
...
@@ -582,7 +582,7 @@ extern byte *mi_alloc_rec_buff(MI_INFO *,ulong, byte**);
extern
ulong
_mi_rec_unpack
(
MI_INFO
*
info
,
byte
*
to
,
byte
*
from
,
ulong
reclength
);
extern
my_bool
_mi_rec_check
(
MI_INFO
*
info
,
const
char
*
record
,
byte
*
packpos
,
ulong
reclength
);
ulong
packed_length
,
my_bool
with_checkum
);
extern
int
_mi_write_part_record
(
MI_INFO
*
info
,
my_off_t
filepos
,
ulong
length
,
my_off_t
next_filepos
,
byte
**
record
,
ulong
*
reclength
,
int
*
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