List:Commits« Previous MessageNext Message »
From:ingo Date:July 29 2006 7:58pm
Subject:bk commit into 4.1 tree (ingo:1.2524) BUG#20719
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of mydev. When mydev does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-07-29 21:58:50+02:00, ingo@stripped +1 -0
  Bug#20719 - Reading dynamic records with write buffer could fail
  After merge fix

  myisam/mi_dynrec.c@stripped, 2006-07-29 21:58:48+02:00, ingo@stripped +3 -0
    Bug#20719 - Reading dynamic records with write buffer could fail
    After merge fix

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	ingo
# Host:	chilla.local
# Root:	/home/mydev/mysql-4.1-bug20719

--- 1.38/myisam/mi_dynrec.c	2006-07-29 21:58:54 +02:00
+++ 1.39/myisam/mi_dynrec.c	2006-07-29 21:58:54 +02:00
@@ -1141,6 +1141,9 @@ int _mi_read_dynamic_record(MI_INFO *inf
     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))
Thread
bk commit into 4.1 tree (ingo:1.2524) BUG#20719ingo29 Jul