diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2008-08-15 10:55:20 +0500 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2008-08-15 10:55:20 +0500 |
commit | a233d7b85174faafeb0a8fa9086fb7a17a30f84d (patch) | |
tree | f87e516be8ec871b5e5d6473a83e5c197e20855a /storage | |
parent | 67a3d9e4d0356665728298097578931c7c5bae1f (diff) | |
download | mariadb-git-a233d7b85174faafeb0a8fa9086fb7a17a30f84d.tar.gz |
Fix for bug#37537: myisamchk fails with Assertion failure with partitioned table
Problem: missed "break" in a switch leads to unexpected assertion failure
of 'myisamchk compressed_table'.
Fix: add the break.
storage/myisam/mi_check.c:
Fix for bug#37537: myisamchk fails with Assertion failure with partitioned table
In the record links check function (chk_data_link())
missed "break" for case COMPRESSED_RECORD was added.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/myisam/mi_check.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/myisam/mi_check.c b/storage/myisam/mi_check.c index 879c171520e..a0acfa0b3b1 100644 --- a/storage/myisam/mi_check.c +++ b/storage/myisam/mi_check.c @@ -1211,6 +1211,7 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend) param->glob_crc+= mi_checksum(info,record); link_used+= (block_info.filepos - start_recpos); used+= (pos-start_recpos); + break; case BLOCK_RECORD: assert(0); /* Impossible */ } /* switch */ |