Merge neptunus.(none):/home/msvensson/mysql/bug13228/my50-bug13228_minimal

into  neptunus.(none):/home/msvensson/mysql/bug13228/my51-bug13228


sql/ha_ndbcluster.cc:
  Auto merged
This commit is contained in:
unknown 2006-03-21 19:47:59 +01:00
commit d24221869a
3 changed files with 132 additions and 0 deletions

View file

@ -558,6 +558,13 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
case NdbError::SchemaError:
invalidate_dictionary_cache(TRUE);
/* Close other open handlers not used by any thread */
TABLE_LIST table_list;
bzero((char*) &table_list,sizeof(table_list));
table_list.db= m_dbname;
table_list.alias= table_list.table_name= m_tabname;
close_cached_tables(current_thd, 0, &table_list);
if (err.code==284)
{
/*