MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Jon Olav Hauglid Date:July 30 2009 9:17am
Subject:bzr commit into mysql-5.4 branch (jon.hauglid:2834) Bug#45067
View as plain text  
#At file:///export/home/z/mysql-azalea-bugfixing-bug45067/ based on revid:jon.hauglid@stripped

 2834 Jon Olav Hauglid	2009-07-30
      Bug #45067 Assertion `stmt_da->is_error()' in 
                 Delayed_insert::open_and_lock_table
      
      The assert was triggered when delayed insert was killed by another 
      connection using mysql_notify_thread_having_shared_lock().
      During handling of thd->killed, thd.fatal_error() was called without
      a previous call to my_error() which triggered the assert.
      This patch allows the assert to pass if thd->killed has been set.
      
      Test case will be added as a part of the patch for the closely 
      related bug #45949.

    modified:
      sql/sql_class.h
=== modified file 'sql/sql_class.h'
--- a/sql/sql_class.h	2009-07-10 12:31:32 +0000
+++ b/sql/sql_class.h	2009-07-30 09:17:05 +0000
@@ -2141,7 +2141,7 @@ public:
   */
   inline void fatal_error()
   {
-    DBUG_ASSERT(stmt_da->is_error());
+    DBUG_ASSERT(stmt_da->is_error() || killed);
     is_fatal_error= 1;
     DBUG_PRINT("error",("Fatal error set"));
   }


Attachment: [text/bzr-bundle] bzr/jon.hauglid@sun.com-20090730091705-l7koh4zn4yp2rpms.bundle
Thread
bzr commit into mysql-5.4 branch (jon.hauglid:2834) Bug#45067Jon Olav Hauglid30 Jul
  • Re: bzr commit into mysql-5.4 branch (jon.hauglid:2834) Bug#45067Konstantin Osipov30 Jul