diff options
author | unknown <gni@dev3-221.dev.cn.tlan> | 2007-04-24 17:34:36 +0800 |
---|---|---|
committer | unknown <gni@dev3-221.dev.cn.tlan> | 2007-04-24 17:34:36 +0800 |
commit | d413ffa9242ea40a5b6495d40c921e2ed8fb3e43 (patch) | |
tree | bab5fd2607840e0db9808c6ee71c1488a0b41730 /sql/ha_ndbcluster.cc | |
parent | 9500194ebdf39ec33b6899643b440cc4f0d5732d (diff) | |
parent | 44271d49a0cb213ea854db41ea017126803e65f1 (diff) | |
download | mariadb-git-d413ffa9242ea40a5b6495d40c921e2ed8fb3e43.tar.gz |
Merge dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.1/mysql-5.1-new-ndb-bj
into dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.1/bug18676
sql/ha_ndbcluster.cc:
Auto merged
sql/handler.cc:
Auto merged
sql/sql_plugin.cc:
Auto merged
sql/sql_table.cc:
Auto merged
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 2ea8b26a84b..05bd356bdf3 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -6354,9 +6354,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); } @@ -6718,7 +6718,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(); |