MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Magne Mahre Date:December 10 2009 9:32am
Subject:bzr commit into mysql-5.6-next-mr branch (magne.mahre:3020) Bug#46495
View as plain text  
#At file:///data/z/mysql-next-4284/ based on revid:kostja@stripped

 3020 Magne Mahre	2009-12-10
      Bug #46495        Crash in reload_acl_and_cache on SIGHUP
            
      An assert in reload_acl_and_cache didn't account for the
      case when the function is called with a NULL thd.  A
      null thd is used whenever the function is called from the
      SIGHUP signal handler.
      
      Backported from 6.0-codebase  (revid: 2617.69.35)

    modified:
      sql/sql_parse.cc
=== modified file 'sql/sql_parse.cc'
--- a/sql/sql_parse.cc	2009-12-10 08:41:03 +0000
+++ b/sql/sql_parse.cc	2009-12-10 09:32:23 +0000
@@ -6568,7 +6568,7 @@ bool reload_acl_and_cache(THD *thd, ulon
   }
 #endif /*HAVE_QUERY_CACHE*/
 
-  DBUG_ASSERT(thd->locked_tables_mode || !thd->mdl_context.has_locks());
+  DBUG_ASSERT(!thd || thd->locked_tables_mode || !thd->mdl_context.has_locks());
 
   /*
     Note that if REFRESH_READ_LOCK bit is set then REFRESH_TABLES is set too


Attachment: [text/bzr-bundle] bzr/magne.mahre@sun.com-20091210093223-luri8232h0drca6z.bundle
Thread
bzr commit into mysql-5.6-next-mr branch (magne.mahre:3020) Bug#46495Magne Mahre10 Dec