diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2006-07-06 15:20:22 +0200 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2006-07-06 15:20:22 +0200 |
commit | 123c0a98b43e8669e5bd1d6a4cbfeec108c3c902 (patch) | |
tree | b03e3a4d36c8114114c6eaa2dd12085bd2e1b4cb /ndb | |
parent | 623f8beec0671401bb70089cd0a22f838fdd857a (diff) | |
parent | 7997d847f2298172842e32acd356e43097adab36 (diff) | |
download | mariadb-git-123c0a98b43e8669e5bd1d6a4cbfeec108c3c902.tar.gz |
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
ndb/src/ndbapi/DictCache.cpp:
Auto merged
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/ndbapi/DictCache.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ndb/src/ndbapi/DictCache.cpp b/ndb/src/ndbapi/DictCache.cpp index a6a90fe3039..bb59c16fb7c 100644 --- a/ndb/src/ndbapi/DictCache.cpp +++ b/ndb/src/ndbapi/DictCache.cpp @@ -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); |