ndb - fix conflicting error codes

parent c69b4821
......@@ -61,8 +61,8 @@ public:
enum ErrorCode {
OK = 0
,InvalidNodeGroup = 747
,InvalidFragmentationType = 748
,InvalidNodeGroup = 771
,InvalidFragmentationType = 772
,InvalidPrimaryTable = 749
};
......
......@@ -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" },
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment