Add surrounding braces, move invalidate dictionary_cace to after declaration of variable "table_list"
This commit is contained in:
parent
875154606e
commit
abf41982f8
@ -507,8 +507,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
|
|||||||
ERR_PRINT(err);
|
ERR_PRINT(err);
|
||||||
switch (err.classification) {
|
switch (err.classification) {
|
||||||
case NdbError::SchemaError:
|
case NdbError::SchemaError:
|
||||||
invalidate_dictionary_cache(TRUE);
|
{
|
||||||
|
|
||||||
/* Close other open handlers not used by any thread */
|
/* Close other open handlers not used by any thread */
|
||||||
TABLE_LIST table_list;
|
TABLE_LIST table_list;
|
||||||
bzero((char*) &table_list,sizeof(table_list));
|
bzero((char*) &table_list,sizeof(table_list));
|
||||||
@ -516,6 +515,8 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
|
|||||||
table_list.alias= table_list.table_name= m_tabname;
|
table_list.alias= table_list.table_name= m_tabname;
|
||||||
close_cached_tables(current_thd, 0, &table_list);
|
close_cached_tables(current_thd, 0, &table_list);
|
||||||
|
|
||||||
|
invalidate_dictionary_cache(TRUE);
|
||||||
|
|
||||||
if (err.code==284)
|
if (err.code==284)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -534,6 +535,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
|
|||||||
DBUG_PRINT("info", ("Table exists but must have changed"));
|
DBUG_PRINT("info", ("Table exists but must have changed"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user