List:Commits« Previous MessageNext Message »
From:Satya B Date:September 23 2009 12:12pm
Subject:bzr commit into mysql-5.1-bugteam branch (satya.bn:3123) Bug#44030
View as plain text  
#At file:///home/satya/WORK/mysql-5.1-bugteam-bug44030/ based on revid:joro@stripped

 3123 Satya B	2009-09-23
      Additional Fix for BUG#44030 - Error: (1500) Couldn't read the MAX(ID) autoinc 
                                     value from the index (PRIMARY)
      
      
      With the fix for BUG#46760, we correctly flag the presence of row_type 
      only when it's actually changed and enables the FAST ALTER TABLE which was
      disabled with the BUG#39200.
      
      So the changes made by BUG#46760 makes MySQL data dictionaries to be out of 
      sync but they are handled already by InnoDB with this BUG#44030.
      
      The test was originally written to handle this but we requested Innodb to
      update the test as the data dictionaries were in sync after the fix for 
      BUG#39200.
      
      Adjusting the innodb-autoinc testcase as mentioned in the comments.
     @ mysql-test/lib/mtr_cases.pm
        Re-enable the innodb-autoinc test case for plugin as we have a common
        result file.
     @ mysql-test/r/innodb-autoinc.result
        Additional Fix for BUG#44030 - Error: (1500) Couldn't read the MAX(ID) autoinc 
                                       value from the index (PRIMARY)
        
        Adjust the innodb-autoinc testcase as the patch for BUG#46760 enables the 
        FAST ALTER TABLE and makes the data dictonaries go out of sync. This is 
        expected in the testcase.
     @ mysql-test/t/innodb-autoinc.test
        Additional Fix for BUG#44030 - Error: (1500) Couldn't read the MAX(ID) autoinc 
                                       value from the index (PRIMARY)
        
        Adjust the innodb-autoinc testcase as the patch for BUG#46760 enables the 
        FAST ALTER TABLE and makes the data dictonaries go out of sync. This is 
        expected in the testcase.

    modified:
      mysql-test/lib/mtr_cases.pm
      mysql-test/r/innodb-autoinc.result
      mysql-test/t/innodb-autoinc.test
=== modified file 'mysql-test/lib/mtr_cases.pm'
--- a/mysql-test/lib/mtr_cases.pm	2009-09-18 13:35:40 +0000
+++ b/mysql-test/lib/mtr_cases.pm	2009-09-23 12:12:12 +0000
@@ -500,7 +500,6 @@ sub collect_one_suite($)
       # Exceptions
       next if ($test->{'name'} eq 'main.innodb'); # Failed with wrong errno (fk)
       next if ($test->{'name'} eq 'main.index_merge_innodb'); # Explain diff
-      next if ($test->{'name'} eq 'main.innodb-autoinc'); # Need dfrnt result file
       # innodb_file_per_table is rw with innodb_plugin
       next if ($test->{'name'} eq 'sys_vars.innodb_file_per_table_basic');
       # innodb_lock_wait_timeout is rw with innodb_plugin

=== modified file 'mysql-test/r/innodb-autoinc.result'
--- a/mysql-test/r/innodb-autoinc.result	2009-09-17 06:29:43 +0000
+++ b/mysql-test/r/innodb-autoinc.result	2009-09-23 12:12:12 +0000
@@ -880,6 +880,7 @@ d1
 1
 3
 INSERT INTO t1 VALUES(null);
+Got one of the listed errors
 ALTER TABLE t1 AUTO_INCREMENT = 3;
 INSERT INTO t1 VALUES(null);
 SELECT * FROM t1;
@@ -887,5 +888,4 @@ d1
 1
 3
 4
-5
 DROP TABLE t1;

=== modified file 'mysql-test/t/innodb-autoinc.test'
--- a/mysql-test/t/innodb-autoinc.test	2009-09-17 06:29:43 +0000
+++ b/mysql-test/t/innodb-autoinc.test	2009-09-23 12:12:12 +0000
@@ -492,11 +492,7 @@ SELECT * FROM t1;
 # The MySQL and InnoDB data dictionaries should now be out of sync.
 # The select should print message to the error log
 SELECT * FROM t1;
-# MySQL have made a change (http://lists.mysql.com/commits/75268) that no
-# longer results in the two data dictionaries being out of sync. If they
-# revert their changes then this check for ER_AUTOINC_READ_FAILED will need
-# to be enabled.
-# -- error ER_AUTOINC_READ_FAILED,1467
+-- error ER_AUTOINC_READ_FAILED,1467
 INSERT INTO t1 VALUES(null);
 ALTER TABLE t1 AUTO_INCREMENT = 3;
 INSERT INTO t1 VALUES(null);


Attachment: [text/bzr-bundle] bzr/satya.bn@sun.com-20090923121212-4x70dbou02bbq88k.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (satya.bn:3123) Bug#44030Satya B23 Sep