Commit d7773916 authored by unknown's avatar unknown
Browse files

bug#at - testNdbApi WaitUntilReady, MaxNdb

fix delete of dictionary before connection has been established


ndb/src/ndbapi/NdbDictionaryImpl.cpp:
  fix delete of dictionary before connection has been established
parent 7fa2b4ef
Loading
Loading
Loading
Loading
+21 −15
Original line number Diff line number Diff line
@@ -596,6 +596,7 @@ static int f_dictionary_count = 0;
NdbDictionaryImpl::~NdbDictionaryImpl()
{
  NdbElement_t<NdbTableImpl> * curr = m_localHash.m_tableHash.getNext(0);
  if(m_globalHash){
    while(curr != 0){
      m_globalHash->lock();
      m_globalHash->release(curr->theData);    
@@ -614,8 +615,13 @@ NdbDictionaryImpl::~NdbDictionaryImpl()
      NdbDictionary::Column::COMMIT_COUNT= 0;
    }
    m_globalHash->unlock();
  } else {
    assert(curr == 0);
  }
}



#if 0
bool
NdbDictionaryImpl::setTransporter(class TransporterFacade * tf)