mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
ndb - post merge fixes
This commit is contained in:
parent
2119a88abe
commit
75cc4ef28a
3 changed files with 3 additions and 11 deletions
|
@ -806,7 +806,7 @@ private:
|
|||
void define_scan_op(NdbIndexScanOperation*);
|
||||
|
||||
friend class HugoOperations;
|
||||
friend struct Ndb_free_list_t<NdbConnection>;
|
||||
friend struct Ndb_free_list_t<NdbTransaction>;
|
||||
};
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue