Commit a233d7b8 authored by Ramil Kalimullin's avatar Ramil Kalimullin

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.
parent 67a3d9e4
...@@ -1211,6 +1211,7 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend) ...@@ -1211,6 +1211,7 @@ int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend)
param->glob_crc+= mi_checksum(info,record); param->glob_crc+= mi_checksum(info,record);
link_used+= (block_info.filepos - start_recpos); link_used+= (block_info.filepos - start_recpos);
used+= (pos-start_recpos); used+= (pos-start_recpos);
break;
case BLOCK_RECORD: case BLOCK_RECORD:
assert(0); /* Impossible */ assert(0); /* Impossible */
} /* switch */ } /* switch */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment