mirror of
https://github.com/MariaDB/server.git
synced 2025-02-19 11:55:37 +01:00
debug printout
This commit is contained in:
parent
4fb031af11
commit
99e809cbd9
1 changed files with 21 additions and 0 deletions
|
@ -70,6 +70,27 @@ LocalDictCache::put(const char * name, Ndb_local_table_info * tab_info){
|
||||||
void
|
void
|
||||||
LocalDictCache::drop(const char * name){
|
LocalDictCache::drop(const char * name){
|
||||||
Ndb_local_table_info *info= m_tableHash.deleteKey(name, strlen(name));
|
Ndb_local_table_info *info= m_tableHash.deleteKey(name, strlen(name));
|
||||||
|
|
||||||
|
#ifndef DBUG_OFF
|
||||||
|
if (info == 0) {
|
||||||
|
ndbout_c("LocalDictCache::drop(%s) info==0", name);
|
||||||
|
ndbout_c("dump begin");
|
||||||
|
NdbElement_t<Ndb_local_table_info> * curr = m_tableHash.getNext(0);
|
||||||
|
while(curr != 0){
|
||||||
|
Ndb_local_table_info *tmp = curr->theData;
|
||||||
|
if (tmp) {
|
||||||
|
ndbout_c("m_table_impl=0x%x, id=%d, name=%s",
|
||||||
|
tmp->m_table_impl,
|
||||||
|
tmp->m_table_impl->m_tableId,
|
||||||
|
tmp->m_table_impl->getName());
|
||||||
|
} else {
|
||||||
|
ndbout_c("NULL");
|
||||||
|
}
|
||||||
|
curr = m_tableHash.getNext(curr);
|
||||||
|
}
|
||||||
|
ndbout_c("dump end");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
DBUG_ASSERT(info != 0);
|
DBUG_ASSERT(info != 0);
|
||||||
Ndb_local_table_info::destroy(info);
|
Ndb_local_table_info::destroy(info);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue