Commit 09e67c97 authored by unknown's avatar unknown

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

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