From bdf3e238b83eb155b72ae01e74261f8648ebc91e Mon Sep 17 00:00:00 2001 From: "mskold@mysql.com" <> Date: Wed, 22 Feb 2006 16:05:57 +0100 Subject: [PATCH] Removed unnecessary unlock/lock of mutex --- sql/ha_ndbcluster_binlog.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index 2099e09385f..6429639d003 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -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", dbname, tabname, error); } - pthread_mutex_unlock(&LOCK_open); - close_cached_tables((THD*) 0, 0, (TABLE_LIST*) 0); - pthread_mutex_lock(&LOCK_open); + close_cached_tables((THD*) 0, 0, (TABLE_LIST*) 0, TRUE); if ((error= ndbcluster_binlog_open_table(thd, share, table_share, table))) sql_print_information("NDB: Failed to re-open table %s.%s",