Commit 32b3a9fe authored by unknown's avatar unknown

ndb: dict cache reference not released as it should


storage/ndb/src/ndbapi/DictCache.cpp:
  changed dbug printout
parent 811fcf86
...@@ -134,8 +134,8 @@ void GlobalDictCache::printCache() ...@@ -134,8 +134,8 @@ void GlobalDictCache::printCache()
const unsigned sz = vers->size(); const unsigned sz = vers->size();
for(unsigned i = 0; i<sz ; i++){ for(unsigned i = 0; i<sz ; i++){
TableVersion tv= (*vers)[i]; TableVersion tv= (*vers)[i];
DBUG_PRINT(" ", ("vers[%d]: ver: %d, refCount: %d, status: %d", DBUG_PRINT(" ", ("impl: %p vers[%d]: ver: %d, refCount: %d, status: %d",
sz, tv.m_version, tv.m_refCount, tv.m_status)); tv.m_impl, i, tv.m_version, tv.m_refCount, tv.m_status));
if(tv.m_impl != 0) if(tv.m_impl != 0)
{ {
DBUG_PRINT(" ", ("m_impl: internalname: %s", DBUG_PRINT(" ", ("m_impl: internalname: %s",
......
...@@ -3725,9 +3725,12 @@ NdbDictionaryImpl::getEvent(const char * eventName, NdbTableImpl* tab) ...@@ -3725,9 +3725,12 @@ NdbDictionaryImpl::getEvent(const char * eventName, NdbTableImpl* tab)
DBUG_RETURN(NULL); DBUG_RETURN(NULL);
} }
} }
ev->setTable(tab);
releaseTableGlobal(*tab, 0);
} }
else
ev->setTable(tab); ev->setTable(tab);
tab = 0;
ev->setTable(m_ndb.externalizeTableName(ev->getTableName())); ev->setTable(m_ndb.externalizeTableName(ev->getTableName()));
// get the columns from the attrListBitmask // get the columns from the attrListBitmask
......
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