List:Commits« Previous MessageNext Message »
From:stewart Date:July 26 2007 8:46am
Subject:[patch 2/2] Bug#26793 I_S query crashes in NDB
View as plain text  
If ::exteral_lock hadn't been called, we'd have no NDB object,
so need to check/get one here.

It looks like sql_show.cc is the only place that does this....
or at least the other places will be well hidden.

Index: ndb-work/sql/ha_ndbcluster.cc
===================================================================
--- ndb-work.orig/sql/ha_ndbcluster.cc	2007-07-25 17:32:20.885441173 +1000
+++ ndb-work/sql/ha_ndbcluster.cc	2007-07-25 17:33:54.914799601 +1000
@@ -3310,6 +3310,8 @@ int ha_ndbcluster::info(uint flag)
     DBUG_PRINT("info", ("HA_STATUS_AUTO"));
     if (m_table && table->found_next_number_field)
     {
+      if ((my_errno= check_ndb_connection()))
+        DBUG_RETURN(my_errno);
       Ndb *ndb= get_ndb();
       
       Uint64 auto_increment_value64;

--
Stewart Smith
Thread
[patch 0/2] TAKE2: BUG#26793 mysqld sig11 on I_S querystewart26 Jul
  • [patch 2/2] Bug#26793 I_S query crashes in NDBstewart26 Jul
  • [patch 1/2] BUG#26793 test: mysqld crashes in NDB on I_S querystewart26 Jul