summaryrefslogtreecommitdiff
path: root/ndb/tools/drop_index.cpp
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-01-01 19:25:31 +0100
committerunknown <joreland@mysql.com>2005-01-01 19:25:31 +0100
commit5e5fc1c623f221e6933623391549cc39c1458b7d (patch)
tree9e2e7fef2c5322221973630ba079cb3b47386946 /ndb/tools/drop_index.cpp
parent1ea4d2a459b3812805aefb27908a0e4d05a73d66 (diff)
downloadmariadb-git-5e5fc1c623f221e6933623391549cc39c1458b7d.tar.gz
ndb - removed deprecated Ndb constructor
ndb/include/ndbapi/Ndb.hpp: removed deprecated methods ndb/src/ndbapi/NdbPool.cpp: removed deprecated methods ndb/src/ndbapi/NdbPoolImpl.cpp: removed deprecated methods ndb/src/ndbapi/NdbPoolImpl.hpp: removed deprecated methods ndb/src/ndbapi/Ndbinit.cpp: removed deprecated methods ndb/tools/delete_all.cpp: removed deprecated methods ndb/tools/desc.cpp: removed deprecated methods ndb/tools/drop_index.cpp: removed deprecated methods ndb/tools/drop_tab.cpp: removed deprecated methods ndb/tools/restore/consumer_restore.cpp: removed deprecated methods ndb/tools/restore/consumer_restore.hpp: removed deprecated methods ndb/tools/restore/restore_main.cpp: removed deprecated methods ndb/tools/select_all.cpp: removed deprecated methods ndb/tools/select_count.cpp: removed deprecated methods
Diffstat (limited to 'ndb/tools/drop_index.cpp')
-rw-r--r--ndb/tools/drop_index.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ndb/tools/drop_index.cpp b/ndb/tools/drop_index.cpp
index 2b7f8c1bce9..cc0dd9a8be6 100644
--- a/ndb/tools/drop_index.cpp
+++ b/ndb/tools/drop_index.cpp
@@ -78,9 +78,13 @@ int main(int argc, char** argv){
return NDBT_ProgramExit(NDBT_WRONGARGS);
}
- Ndb::setConnectString(opt_connect_str);
- // Connect to Ndb
- Ndb MyNdb(_dbname);
+ Ndb_cluster_connection con(opt_connect_str);
+ if(con.connect(12, 5, 1) != 0)
+ {
+ return NDBT_ProgramExit(NDBT_FAILED);
+ }
+ Ndb MyNdb(&con, _dbname );
+
if(MyNdb.init() != 0){
ERR(MyNdb.getNdbError());
return NDBT_ProgramExit(NDBT_FAILED);