summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorjonas@perch.ndb.mysql.com <>2006-04-10 17:06:33 +0200
committerjonas@perch.ndb.mysql.com <>2006-04-10 17:06:33 +0200
commitd3b1572acff49efe08e8db8747553bc6a62a28e3 (patch)
tree949350875495fbf1ead1df84fbfde201b99a3d9f /sql
parentf897c0cebda4c66c5eea9244e1975d51dd7080fd (diff)
downloadmariadb-git-d3b1572acff49efe08e8db8747553bc6a62a28e3.tar.gz
ndb -
fix all valgrind warnings in t/ndb_dd (except replication related)
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_ndbcluster.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index a4193e4eb33..6c75233c83b 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -5733,7 +5733,6 @@ int ndbcluster_find_all_files(THD *thd)
DBUG_ENTER("ndbcluster_find_all_files");
Ndb* ndb;
char key[FN_REFLEN];
- NdbDictionary::Dictionary::List list;
if (!(ndb= check_ndb_in_thd(thd)))
DBUG_RETURN(HA_ERR_NO_CONNECTION);
@@ -5743,6 +5742,7 @@ int ndbcluster_find_all_files(THD *thd)
int unhandled, retries= 5;
do
{
+ NdbDictionary::Dictionary::List list;
if (dict->listObjects(list, NdbDictionary::Object::UserTable) != 0)
ERR_RETURN(dict->getNdbError());
unhandled= 0;
@@ -10029,14 +10029,15 @@ static int ndbcluster_fill_files_table(THD *thd, TABLE_LIST *tables, COND *cond)
}
}
- dict->listObjects(dflist, NdbDictionary::Object::Undofile);
+ NdbDictionary::Dictionary::List uflist;
+ dict->listObjects(uflist, NdbDictionary::Object::Undofile);
ndberr= dict->getNdbError();
if (ndberr.classification != NdbError::NoError)
ERR_RETURN(ndberr);
- for (i= 0; i < dflist.count; i++)
+ for (i= 0; i < uflist.count; i++)
{
- NdbDictionary::Dictionary::List::Element& elt= dflist.elements[i];
+ NdbDictionary::Dictionary::List::Element& elt= uflist.elements[i];
Ndb_cluster_connection_node_iter iter;
unsigned id;