mirror of
https://github.com/MariaDB/server.git
synced 2025-11-19 19:03:26 +03:00
Added check for stale table
This commit is contained in:
@@ -3423,7 +3423,17 @@ NdbDictionaryImpl::getEvent(const char * eventName)
|
|||||||
delete ev;
|
delete ev;
|
||||||
DBUG_RETURN(NULL);
|
DBUG_RETURN(NULL);
|
||||||
}
|
}
|
||||||
|
if (info->m_table_impl->m_status == NdbDictionary::Object::Invalid)
|
||||||
|
{
|
||||||
|
removeCachedObject(*info->m_table_impl);
|
||||||
|
info= get_local_table_info(ev->getTableName(), true);
|
||||||
|
if (info == 0)
|
||||||
|
{
|
||||||
|
DBUG_PRINT("error",("unable to find table %s", ev->getTableName()));
|
||||||
|
delete ev;
|
||||||
|
DBUG_RETURN(NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
ev->setTable(info->m_table_impl);
|
ev->setTable(info->m_table_impl);
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user