MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Kristofer Pettersson Date:July 16 2009 6:59pm
Subject:bzr commit into mysql-5.4 branch (kristofer.pettersson:3470) Bug#45781
View as plain text  
#At file:///Users/thek/Development/mysql-pe/ based on revid:kristofer.pettersson@stripped

 3470 Kristofer Pettersson	2009-07-16
      bug#45781 infinite hang/crash in "opening tables" after handler tries to open merge
                table
      
      Fixed Merge mistake between 5.1->pe

    modified:
      sql/sql_handler.cc
=== modified file 'sql/sql_handler.cc'
--- a/sql/sql_handler.cc	2009-07-16 08:00:34 +0000
+++ b/sql/sql_handler.cc	2009-07-16 18:59:00 +0000
@@ -298,13 +298,13 @@ bool mysql_ha_open(THD *thd, TABLE_LIST 
   DBUG_ASSERT(! hash_tables->table);
 
   /* for now HANDLER can be used only for real TABLES */
-  tables->required_type= FRMTYPE_TABLE;
+  hash_tables->required_type= FRMTYPE_TABLE;
   /*
     We use open_tables() here, rather than, say,
     open_ltable() or open_table() because we would like to be able
     to open a temporary table.
   */
-  error= open_tables(thd, &tables, &counter, 0);
+  error= open_tables(thd, &hash_tables, &counter, 0);
   if (thd->open_tables)
   {
     if (thd->open_tables->next)
@@ -318,7 +318,7 @@ bool mysql_ha_open(THD *thd, TABLE_LIST 
         can close a single table only.
       */
       close_thread_tables(thd);
-      my_error(ER_ILLEGAL_HA, MYF(0), tables->alias);
+      my_error(ER_ILLEGAL_HA, MYF(0), hash_tables->alias);
       error= 1;
     }
     else


Attachment: [text/bzr-bundle]
Thread
bzr commit into mysql-5.4 branch (kristofer.pettersson:3470) Bug#45781Kristofer Pettersson16 Jul