mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
This commit is contained in:
commit
9944e41f6e
1 changed files with 8 additions and 5 deletions
|
@ -325,12 +325,15 @@ GlobalDictCache::invalidate_all()
|
|||
if (vers->size())
|
||||
{
|
||||
TableVersion * ver = & vers->back();
|
||||
ver->m_impl->m_status = NdbDictionary::Object::Invalid;
|
||||
ver->m_status = DROPPED;
|
||||
if (ver->m_refCount == 0)
|
||||
if (ver->m_status != RETREIVING)
|
||||
{
|
||||
delete ver->m_impl;
|
||||
vers->erase(vers->size() - 1);
|
||||
ver->m_impl->m_status = NdbDictionary::Object::Invalid;
|
||||
ver->m_status = DROPPED;
|
||||
if (ver->m_refCount == 0)
|
||||
{
|
||||
delete ver->m_impl;
|
||||
vers->erase(vers->size() - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
curr = m_tableHash.getNext(curr);
|
||||
|
|
Loading…
Add table
Reference in a new issue