diff --git a/ndb/include/ndbapi/NdbTransaction.hpp b/ndb/include/ndbapi/NdbTransaction.hpp index 4b12b0acbf3..a6ba6a11c4d 100644 --- a/ndb/include/ndbapi/NdbTransaction.hpp +++ b/ndb/include/ndbapi/NdbTransaction.hpp @@ -806,7 +806,7 @@ private: void define_scan_op(NdbIndexScanOperation*); friend class HugoOperations; - friend struct Ndb_free_list_t; + friend struct Ndb_free_list_t; }; #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL diff --git a/ndb/src/ndbapi/Ndblist.cpp b/ndb/src/ndbapi/Ndblist.cpp index 3779ba33624..f82348fc91d 100644 --- a/ndb/src/ndbapi/Ndblist.cpp +++ b/ndb/src/ndbapi/Ndblist.cpp @@ -132,13 +132,6 @@ NdbTransaction* Ndb::getNdbCon() { NdbTransaction* tNdbCon = theImpl->theConIdleList.seize(this); - if (unlikely(theImpl->theConIdleList.m_alloc_cnt > theMaxNoOfTransactions)) - { - theImpl->theConIdleList.release(tNdbCon); - ndbout << "theNoOfAllocatedTransactions = " << theNoOfAllocatedTransactions << " theMaxNoOfTransactions = " << theMaxNoOfTransactions << endl; - return NULL; - }//if - tNdbCon->theMagicNumber = 0x37412619; return tNdbCon; } diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 6e03da4e436..8afa9e9c2cc 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -7416,10 +7416,9 @@ ndbcluster_show_status(THD* thd) if (protocol->send_fields(&field_list, 1)) DBUG_RETURN(TRUE); - if (thd->transaction.thd_ndb && - ((Thd_ndb*)thd->transaction.thd_ndb)->ndb) + if (get_thd_ndb(thd) && get_thd_ndb(thd)->ndb) { - Ndb* ndb= ((Thd_ndb*)thd->transaction.thd_ndb)->ndb; + Ndb* ndb= (get_thd_ndb(thd))->ndb; Ndb::Free_list_usage tmp; tmp.m_name= 0; while (ndb->get_free_list_usage(&tmp)) {