Merge chilla.local:/home/mydev/mysql-4.1-bug20719

into  chilla.local:/home/mydev/mysql-5.0-bug20719
This commit is contained in:
ingo/mydev@chilla.local 2006-07-29 21:59:36 +02:00
commit 9c006d44a0

View File

@ -1180,6 +1180,9 @@ int _mi_read_dynamic_record(MI_INFO *info, my_off_t filepos, byte *buf)
block_info.second_read= 0;
do
{
/* A corrupted table can have wrong pointers. (Bug# 19835) */
if (filepos == HA_OFFSET_ERROR)
goto panic;
if (info->opt_flag & WRITE_CACHE_USED &&
info->rec_cache.pos_in_file < filepos + MI_BLOCK_INFO_HEADER_LENGTH &&
flush_io_cache(&info->rec_cache))