Below is the list of changes that have just been committed into a local
5.1 repository of mskold. When mskold does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2008-05-27 15:21:44+02:00, mskold@stripped +1 -0
bug#37000 Dropping table when ndb is in single user mode incorrectly deletes .ndb file: If table already gone then remove .ndb filer
sql/ha_ndbcluster.cc@stripped, 2008-05-27 15:21:37+02:00, mskold@stripped +7 -1
bug#37000 Dropping table when ndb is in single user mode incorrectly deletes .ndb file: If table already gone then remove .ndb filer
diff -Nrup a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
--- a/sql/ha_ndbcluster.cc 2008-05-27 11:45:18 +02:00
+++ b/sql/ha_ndbcluster.cc 2008-05-27 15:21:37 +02:00
@@ -6350,8 +6350,14 @@ int ha_ndbcluster::delete_table(const ch
goto err;
}
+ /*
+ Drop table in ndb.
+ If it was already gone it might have been dropped
+ remotely, then drop .ndb file.
+ */
if (!(error= delete_table(thd, this, get_ndb(thd), name,
- m_dbname, m_tabname)))
+ m_dbname, m_tabname)) ||
+ error == HA_ERR_NO_SUCH_TABLE)
{
/* Call ancestor function to delete .ndb file */
error= handler::delete_table(name);
| Thread |
|---|
| • bk commit into 5.1 tree (mskold:1.2604) BUG#37000 | Martin Skold | 27 May |