Below is the list of changes that have just been committed into a local
5.1 repository of tomas. When tomas 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
1.2205 06/03/01 18:24:07 tomas@stripped +1 -0
Merge tulin@stripped:/home/bk/mysql-5.1-new
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new
sql/ha_ndbcluster.cc
1.279 06/03/01 18:23:59 tomas@stripped +0 -0
Auto merged
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: tomas
# Host: poseidon.ndb.mysql.com
# Root: /home/tomas/mysql-5.1-new/RESYNC
--- 1.278/sql/ha_ndbcluster.cc 2006-03-01 15:29:31 +01:00
+++ 1.279/sql/ha_ndbcluster.cc 2006-03-01 18:23:59 +01:00
@@ -4728,13 +4728,14 @@
int ha_ndbcluster::rename_table(const char *from, const char *to)
{
NDBDICT *dict;
+ char old_dbname[FN_HEADLEN];
char new_tabname[FN_HEADLEN];
const NDBTAB *orig_tab;
int result;
DBUG_ENTER("ha_ndbcluster::rename_table");
DBUG_PRINT("info", ("Renaming %s to %s", from, to));
- set_dbname(from);
+ set_dbname(from, old_dbname);
set_tabname(from);
set_tabname(to, new_tabname);
@@ -4742,6 +4743,7 @@
DBUG_RETURN(my_errno= HA_ERR_NO_CONNECTION);
Ndb *ndb= get_ndb();
+ ndb->setDatabaseName(old_dbname);
dict= ndb->getDictionary();
if (!(orig_tab= dict->getTable(m_tabname)))
ERR_RETURN(dict->getNdbError());
@@ -4833,7 +4835,8 @@
current_thd->query, current_thd->query_length,
m_dbname, new_tabname,
0, 0,
- SOT_RENAME_TABLE);
+ SOT_RENAME_TABLE,
+ old_dbname, m_tabname);
}
if (share)
free_share(&share);
| Thread |
|---|
| • bk commit into 5.1 tree (tomas:1.2205) | tomas | 1 Mar |