bug#at - testNdbApi WaitUntilReady, MaxNdb

fix delete of dictionary before connection has been established
This commit is contained in:
joreland@mysql.com 2004-09-08 06:48:03 +02:00
parent e9edf3cfb9
commit f63f994b73

View file

@ -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,7 +615,12 @@ NdbDictionaryImpl::~NdbDictionaryImpl()
NdbDictionary::Column::COMMIT_COUNT= 0;
}
m_globalHash->unlock();
} else {
assert(curr == 0);
}
}
#if 0
bool