Removed unnecessary unlock/lock of mutex
This commit is contained in:
parent
0a0aa52756
commit
bdf3e238b8
@ -1365,9 +1365,7 @@ ndb_handle_schema_change(THD *thd, Ndb *ndb, NdbEventOperation *pOp,
|
|||||||
sql_print_information("NDB: Failed write frm for %s.%s, error %d",
|
sql_print_information("NDB: Failed write frm for %s.%s, error %d",
|
||||||
dbname, tabname, error);
|
dbname, tabname, error);
|
||||||
}
|
}
|
||||||
pthread_mutex_unlock(&LOCK_open);
|
close_cached_tables((THD*) 0, 0, (TABLE_LIST*) 0, TRUE);
|
||||||
close_cached_tables((THD*) 0, 0, (TABLE_LIST*) 0);
|
|
||||||
pthread_mutex_lock(&LOCK_open);
|
|
||||||
if ((error= ndbcluster_binlog_open_table(thd, share,
|
if ((error= ndbcluster_binlog_open_table(thd, share,
|
||||||
table_share, table)))
|
table_share, table)))
|
||||||
sql_print_information("NDB: Failed to re-open table %s.%s",
|
sql_print_information("NDB: Failed to re-open table %s.%s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user