summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com[tomas]>2005-11-05 22:55:51 +0100
committerunknown <tomas@poseidon.ndb.mysql.com[tomas]>2005-11-05 22:55:51 +0100
commitcca0ce5b3e4839da42435acdea4955f0912f7bd0 (patch)
treeb45c913b25253fbaec3aea73149f98fcbf15a5b2 /storage
parente610dc133fd7e382f693581c97818f1be0413343 (diff)
downloadmariadb-git-cca0ce5b3e4839da42435acdea4955f0912f7bd0.tar.gz
ndb - fix conflicting error codes
Diffstat (limited to 'storage')
-rw-r--r--storage/ndb/include/kernel/signaldata/CreateFragmentation.hpp4
-rw-r--r--storage/ndb/src/ndbapi/ndberror.c4
-rw-r--r--storage/ndb/test/ndbapi/test_event.cpp9
3 files changed, 9 insertions, 8 deletions
diff --git a/storage/ndb/include/kernel/signaldata/CreateFragmentation.hpp b/storage/ndb/include/kernel/signaldata/CreateFragmentation.hpp
index 07b349b5d12..6bcbb432a00 100644
--- a/storage/ndb/include/kernel/signaldata/CreateFragmentation.hpp
+++ b/storage/ndb/include/kernel/signaldata/CreateFragmentation.hpp
@@ -61,8 +61,8 @@ public:
enum ErrorCode {
OK = 0
- ,InvalidNodeGroup = 747
- ,InvalidFragmentationType = 748
+ ,InvalidNodeGroup = 771
+ ,InvalidFragmentationType = 772
,InvalidPrimaryTable = 749
};
diff --git a/storage/ndb/src/ndbapi/ndberror.c b/storage/ndb/src/ndbapi/ndberror.c
index 10981f3ce29..e2905e981de 100644
--- a/storage/ndb/src/ndbapi/ndberror.c
+++ b/storage/ndb/src/ndbapi/ndberror.c
@@ -349,8 +349,8 @@ ErrorBundle ErrorCodes[] = {
{ 743, HA_WRONG_CREATE_OPTION, SE, "Unsupported character set in table or index" },
{ 744, DMEC, SE, "Character string is invalid for given character set" },
{ 745, HA_WRONG_CREATE_OPTION, SE, "Distribution key not supported for char attribute (use binary attribute)" },
- { 747, HA_WRONG_CREATE_OPTION, AE, "Given NODEGROUP doesn't exist in this cluster" },
- { 748, HA_WRONG_CREATE_OPTION, IE, "Given fragmentType doesn't exist" },
+ { 771, HA_WRONG_CREATE_OPTION, AE, "Given NODEGROUP doesn't exist in this cluster" },
+ { 772, HA_WRONG_CREATE_OPTION, IE, "Given fragmentType doesn't exist" },
{ 749, HA_WRONG_CREATE_OPTION, IE, "Primary Table in wrong state" },
{ 761, DMEC, SE, "Unable to drop table as backup is in progress" },
{ 762, DMEC, SE, "Unable to alter table as backup is in progress" },
diff --git a/storage/ndb/test/ndbapi/test_event.cpp b/storage/ndb/test/ndbapi/test_event.cpp
index 2a13621a0a2..1bb614c1c8b 100644
--- a/storage/ndb/test/ndbapi/test_event.cpp
+++ b/storage/ndb/test/ndbapi/test_event.cpp
@@ -462,6 +462,7 @@ int runEventMixedLoad(NDBT_Context* ctx, NDBT_Step* step)
g_err << "FAIL " << __LINE__ << endl;
return NDBT_FAILED;
}
+
if (hugoTrans.pkDelRecords(GETNDB(step), 3*records, 1, true, 1) != 0){
g_err << "FAIL " << __LINE__ << endl;
return NDBT_FAILED;
@@ -482,14 +483,15 @@ int runEventMixedLoad(NDBT_Context* ctx, NDBT_Step* step)
g_err << "FAIL " << __LINE__ << endl;
return NDBT_FAILED;
}
-
+
ctx->setProperty("LastGCI", hugoTrans.m_latest_gci);
if(ctx->getPropertyWait("LastGCI", ~(Uint32)0))
{
+ g_err << "FAIL " << __LINE__ << endl;
return NDBT_FAILED;
}
}
-
+ ctx->stopTest();
return NDBT_OK;
}
@@ -519,7 +521,6 @@ int runEventApplier(NDBT_Context* ctx, NDBT_Step* step)
DBUG_ENTER("runEventApplier");
int result = NDBT_OK;
- int loops = ctx->getNumLoops();
const NdbDictionary::Table * table= ctx->getTab();
HugoTransactions hugoTrans(* table);
@@ -557,7 +558,7 @@ int runEventApplier(NDBT_Context* ctx, NDBT_Step* step)
goto end;
}
- while(loops-- && !ctx->isTestStopped())
+ while(!ctx->isTestStopped())
{
int r;
int count= 0;