=== modified file 'sql/ha_ndbcluster.cc' --- sql/ha_ndbcluster.cc 2009-01-13 12:09:46 +0000 +++ sql/ha_ndbcluster.cc 2009-01-14 13:30:13 +0000 @@ -27,6 +27,7 @@ #endif #include "mysql_priv.h" +#include "sql_show.h" #include "rpl_mi.h" #include @@ -8601,6 +8602,26 @@ int ndbcluster_find_all_files(THD *thd) LINT_INIT(unhandled); LINT_INIT(skipped); + + { + List files; + if (find_files(thd, &files, NullS, mysql_data_home, NullS, 1) != + FIND_FILES_OK) + DBUG_RETURN(1); + + LEX_STRING *db_name; + List_iterator_fast it(files); + while ((db_name= it++)) + { + List files2; + sql_print_information("database %s", db_name->str); + build_table_filename(key, sizeof(key), db_name->str, "", "", 0); + if (find_files(thd, &files2, db_name->str, key, NullS, 0) != + FIND_FILES_OK) + DBUG_RETURN(1); + } + } + do { NdbDictionary::Dictionary::List list;