Commit 2428e7b1 authored by mskold@mysql.com's avatar mskold@mysql.com

Fix for avoiding gettin Invalid schema object version when doing local changes, fixed found bug

parent 78263507
......@@ -3266,7 +3266,7 @@ int ha_ndbcluster::external_lock(THD *thd, int lock_type)
if (tab->getObjectStatus() == NdbDictionary::Object::Invalid)
{
invalidate_dictionary_cache(FALSE);
if (!(tab= dict->getTable(m_tabname)))
if (!(tab= dict->getTable(m_tabname, &tab_info)))
ERR_RETURN(dict->getNdbError());
DBUG_PRINT("info", ("Table schema version: %d",
tab->getObjectVersion()));
......
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