From b6ad57e0a37b43d20a58f9dc74258f2dc7544ea2 Mon Sep 17 00:00:00 2001
From: unknown <mskold@mysql.com>
Date: Fri, 29 Apr 2005 11:37:47 +0200
Subject: [PATCH] Fix for avoiding gettin Invalid schema object version when
 doing local changes, fixed found bug

---
 sql/ha_ndbcluster.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 181ae5e5b5..a1166641f7 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -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()));
-- 
2.30.9