mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
This commit is contained in:
@@ -5848,6 +5848,7 @@ int ndbcluster_drop_database_impl(const char *path)
|
||||
while ((tabname=it++))
|
||||
{
|
||||
tablename_to_filename(tabname, tmp, FN_REFLEN - (tmp - full_path)-1);
|
||||
VOID(pthread_mutex_lock(&LOCK_open));
|
||||
if (ha_ndbcluster::delete_table(0, ndb, full_path, dbname, tabname))
|
||||
{
|
||||
const NdbError err= dict->getNdbError();
|
||||
@@ -5857,6 +5858,7 @@ int ndbcluster_drop_database_impl(const char *path)
|
||||
ret= ndb_to_mysql_error(&err);
|
||||
}
|
||||
}
|
||||
VOID(pthread_mutex_unlock(&LOCK_open));
|
||||
}
|
||||
DBUG_RETURN(ret);
|
||||
}
|
||||
|
@@ -286,6 +286,7 @@ ndbcluster_binlog_open_table(THD *thd, NDB_SHARE *share,
|
||||
int error;
|
||||
DBUG_ENTER("ndbcluster_binlog_open_table");
|
||||
|
||||
safe_mutex_assert_owner(&LOCK_open);
|
||||
init_tmp_table_share(table_share, share->db, 0, share->table_name,
|
||||
share->key);
|
||||
if ((error= open_table_def(thd, table_share, 0)))
|
||||
|
Reference in New Issue
Block a user