From db2db3c0884a0ffe4fa10e2b46b463633af3cdd3 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 12 Aug 2004 08:54:21 +0200 Subject: [PATCH] testScan -n ScanRandomTable testDict -n FragmentType ndb/test/ndbapi/testDict.cpp: Drop table before trying to create with special fragmentation ndb/test/ndbapi/testScan.cpp: testScan -n ScanRandomTable ndb/test/src/NDBT_Tables.cpp: testScan -n ScanRandomTable --- ndb/test/ndbapi/testDict.cpp | 1 + ndb/test/ndbapi/testScan.cpp | 2 +- ndb/test/src/NDBT_Tables.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ndb/test/ndbapi/testDict.cpp b/ndb/test/ndbapi/testDict.cpp index 1451c942362..e7597c26960 100644 --- a/ndb/test/ndbapi/testDict.cpp +++ b/ndb/test/ndbapi/testDict.cpp @@ -537,6 +537,7 @@ int runTestFragmentTypes(NDBT_Context* ctx, NDBT_Step* step){ } const NdbDictionary::Table* pTab = ctx->getTab(); + pNdb->getDictionary()->dropTable(pTab->getName()); NdbDictionary::Table newTab(* pTab); // Set fragment type for table diff --git a/ndb/test/ndbapi/testScan.cpp b/ndb/test/ndbapi/testScan.cpp index de60d68f213..3da0ceb6d8c 100644 --- a/ndb/test/ndbapi/testScan.cpp +++ b/ndb/test/ndbapi/testScan.cpp @@ -65,7 +65,7 @@ int runDropAllTablesExceptTestTable(NDBT_Context* ctx, NDBT_Step* step){ } int res = GETNDB(step)->getDictionary()->dropTable(tab->getName()); - if(res != -1){ + if(res == -1){ return NDBT_FAILED; } } diff --git a/ndb/test/src/NDBT_Tables.cpp b/ndb/test/src/NDBT_Tables.cpp index d0a46604316..8af72a75efa 100644 --- a/ndb/test/src/NDBT_Tables.cpp +++ b/ndb/test/src/NDBT_Tables.cpp @@ -803,6 +803,7 @@ int NDBT_Tables::createAllTables(Ndb* pNdb, bool _temp, bool existsOk){ for (int i=0; i < NDBT_Tables::getNumTables(); i++){ + pNdb->getDictionary()->dropTable(NDBT_Tables::getTable(i)->getName()); int ret= createTable(pNdb, NDBT_Tables::getTable(i)->getName(), _temp, existsOk); if(ret)