diff options
author | svoj@mysql.com/june.mysql.com <> | 2007-11-07 12:55:28 +0400 |
---|---|---|
committer | svoj@mysql.com/june.mysql.com <> | 2007-11-07 12:55:28 +0400 |
commit | 7bd370fe87711d97443db1757d12e175c306d58b (patch) | |
tree | e545cfb8f6956dc307912b1e2ce12e2e5c7144a6 /myisam/mi_packrec.c | |
parent | 0253d7875d592996b2234d211fa0d34bc7d494f8 (diff) | |
download | mariadb-git-7bd370fe87711d97443db1757d12e175c306d58b.tar.gz |
BUG#31277 - myisamchk --unpack corrupts a table
With certain data sets (when compressed record length gets bigger than
uncompressed) myisamchk --unpack may corrupt data file.
Fixed that record length was wrongly restored from compressed table.
Diffstat (limited to 'myisam/mi_packrec.c')
-rw-r--r-- | myisam/mi_packrec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/myisam/mi_packrec.c b/myisam/mi_packrec.c index 51b0222e876..e931cc770ed 100644 --- a/myisam/mi_packrec.c +++ b/myisam/mi_packrec.c @@ -164,7 +164,6 @@ my_bool _mi_read_pack_info(MI_INFO *info, pbool fix_keys) share->pack.header_length= uint4korr(header+4); share->min_pack_length=(uint) uint4korr(header+8); share->max_pack_length=(uint) uint4korr(header+12); - set_if_bigger(share->base.pack_reclength,share->max_pack_length); elements=uint4korr(header+16); intervall_length=uint4korr(header+20); trees=uint2korr(header+24); |