Commit 5a5b91de authored by unknown's avatar unknown

ndb - post merge fixes


ndb/include/ndbapi/NdbTransaction.hpp:
  post merge fixes
ndb/src/ndbapi/Ndblist.cpp:
  post merge fixes
sql/ha_ndbcluster.cc:
  post merge fixes
parent 6d576bd3
...@@ -806,7 +806,7 @@ private: ...@@ -806,7 +806,7 @@ private:
void define_scan_op(NdbIndexScanOperation*); void define_scan_op(NdbIndexScanOperation*);
friend class HugoOperations; friend class HugoOperations;
friend struct Ndb_free_list_t<NdbConnection>; friend struct Ndb_free_list_t<NdbTransaction>;
}; };
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
......
...@@ -132,13 +132,6 @@ NdbTransaction* ...@@ -132,13 +132,6 @@ NdbTransaction*
Ndb::getNdbCon() Ndb::getNdbCon()
{ {
NdbTransaction* tNdbCon = theImpl->theConIdleList.seize(this); 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; tNdbCon->theMagicNumber = 0x37412619;
return tNdbCon; return tNdbCon;
} }
......
...@@ -7416,10 +7416,9 @@ ndbcluster_show_status(THD* thd) ...@@ -7416,10 +7416,9 @@ ndbcluster_show_status(THD* thd)
if (protocol->send_fields(&field_list, 1)) if (protocol->send_fields(&field_list, 1))
DBUG_RETURN(TRUE); DBUG_RETURN(TRUE);
if (thd->transaction.thd_ndb && if (get_thd_ndb(thd) && get_thd_ndb(thd)->ndb)
((Thd_ndb*)thd->transaction.thd_ndb)->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; Ndb::Free_list_usage tmp; tmp.m_name= 0;
while (ndb->get_free_list_usage(&tmp)) while (ndb->get_free_list_usage(&tmp))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment