List:Commits« Previous MessageNext Message »
From:Ramil Kalimullin Date:July 14 2008 7:02pm
Subject:bzr commit into mysql-5.1 branch (ramil:2703) Bug#37537
View as plain text  
#At file:///home/ram/mysql/b37537.5.1/

 2703 Ramil Kalimullin	2008-07-14
      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.
modified:
  storage/myisam/mi_check.c

per-file messages:
  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.
=== modified file 'storage/myisam/mi_check.c'
--- a/storage/myisam/mi_check.c	2008-03-31 07:40:39 +0000
+++ b/storage/myisam/mi_check.c	2008-07-14 17:02:05 +0000
@@ -1211,6 +1211,7 @@ int chk_data_link(MI_CHECK *param, MI_IN
 	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 */

Thread
bzr commit into mysql-5.1 branch (ramil:2703) Bug#37537Ramil Kalimullin14 Jul