diff options
author | tomas@whalegate.ndb.mysql.com <> | 2007-05-10 08:06:09 +0200 |
---|---|---|
committer | tomas@whalegate.ndb.mysql.com <> | 2007-05-10 08:06:09 +0200 |
commit | 19a2814f47bd7a455bb9f01f4f9904c6134b354e (patch) | |
tree | 2d5565953b289fe2d26ba02e3f090fec5de45661 /sql/ha_ndbcluster.cc | |
parent | 71b2667abde1ed740b5191bc0020fe7d5edab17a (diff) | |
parent | a84d2971fc18e3d90aa1e0ba618effe35767a81e (diff) | |
download | mariadb-git-19a2814f47bd7a455bb9f01f4f9904c6134b354e.tar.gz |
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-opt
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-single-user
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index a6d9669f9ca..6b722bac5e3 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -6561,9 +6561,9 @@ int ndbcluster_table_exists_in_engine(handlerton *hton, THD* thd, if (my_strcasecmp(system_charset_info, elmt.name, name)) continue; DBUG_PRINT("info", ("Found table")); - DBUG_RETURN(1); + DBUG_RETURN(HA_ERR_TABLE_EXIST); } - DBUG_RETURN(0); + DBUG_RETURN(HA_ERR_NO_SUCH_TABLE); } @@ -6927,7 +6927,7 @@ int ndbcluster_find_files(handlerton *hton, THD *thd, DBUG_PRINT("info", ("%s existed on disk", name)); // The .ndb file exists on disk, but it's not in list of tables in ndb // Verify that handler agrees table is gone. - if (ndbcluster_table_exists_in_engine(hton, thd, db, file_name) == 0) + if (ndbcluster_table_exists_in_engine(hton, thd, db, file_name) == HA_ERR_NO_SUCH_TABLE) { DBUG_PRINT("info", ("NDB says %s does not exists", file_name)); it.remove(); |