ndb - fix conflicting error codes

parent c69b4821
...@@ -61,8 +61,8 @@ public: ...@@ -61,8 +61,8 @@ public:
enum ErrorCode { enum ErrorCode {
OK = 0 OK = 0
,InvalidNodeGroup = 747 ,InvalidNodeGroup = 771
,InvalidFragmentationType = 748 ,InvalidFragmentationType = 772
,InvalidPrimaryTable = 749 ,InvalidPrimaryTable = 749
}; };
......
...@@ -349,8 +349,8 @@ ErrorBundle ErrorCodes[] = { ...@@ -349,8 +349,8 @@ ErrorBundle ErrorCodes[] = {
{ 743, HA_WRONG_CREATE_OPTION, SE, "Unsupported character set in table or index" }, { 743, HA_WRONG_CREATE_OPTION, SE, "Unsupported character set in table or index" },
{ 744, DMEC, SE, "Character string is invalid for given character set" }, { 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)" }, { 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" }, { 771, HA_WRONG_CREATE_OPTION, AE, "Given NODEGROUP doesn't exist in this cluster" },
{ 748, HA_WRONG_CREATE_OPTION, IE, "Given fragmentType doesn't exist" }, { 772, HA_WRONG_CREATE_OPTION, IE, "Given fragmentType doesn't exist" },
{ 749, HA_WRONG_CREATE_OPTION, IE, "Primary Table in wrong state" }, { 749, HA_WRONG_CREATE_OPTION, IE, "Primary Table in wrong state" },
{ 761, DMEC, SE, "Unable to drop table as backup is in progress" }, { 761, DMEC, SE, "Unable to drop table as backup is in progress" },
{ 762, DMEC, SE, "Unable to alter 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) ...@@ -462,6 +462,7 @@ int runEventMixedLoad(NDBT_Context* ctx, NDBT_Step* step)
g_err << "FAIL " << __LINE__ << endl; g_err << "FAIL " << __LINE__ << endl;
return NDBT_FAILED; return NDBT_FAILED;
} }
if (hugoTrans.pkDelRecords(GETNDB(step), 3*records, 1, true, 1) != 0){ if (hugoTrans.pkDelRecords(GETNDB(step), 3*records, 1, true, 1) != 0){
g_err << "FAIL " << __LINE__ << endl; g_err << "FAIL " << __LINE__ << endl;
return NDBT_FAILED; return NDBT_FAILED;
...@@ -482,14 +483,15 @@ int runEventMixedLoad(NDBT_Context* ctx, NDBT_Step* step) ...@@ -482,14 +483,15 @@ int runEventMixedLoad(NDBT_Context* ctx, NDBT_Step* step)
g_err << "FAIL " << __LINE__ << endl; g_err << "FAIL " << __LINE__ << endl;
return NDBT_FAILED; return NDBT_FAILED;
} }
ctx->setProperty("LastGCI", hugoTrans.m_latest_gci); ctx->setProperty("LastGCI", hugoTrans.m_latest_gci);
if(ctx->getPropertyWait("LastGCI", ~(Uint32)0)) if(ctx->getPropertyWait("LastGCI", ~(Uint32)0))
{ {
g_err << "FAIL " << __LINE__ << endl;
return NDBT_FAILED; return NDBT_FAILED;
} }
} }
ctx->stopTest();
return NDBT_OK; return NDBT_OK;
} }
...@@ -519,7 +521,6 @@ int runEventApplier(NDBT_Context* ctx, NDBT_Step* step) ...@@ -519,7 +521,6 @@ int runEventApplier(NDBT_Context* ctx, NDBT_Step* step)
DBUG_ENTER("runEventApplier"); DBUG_ENTER("runEventApplier");
int result = NDBT_OK; int result = NDBT_OK;
int loops = ctx->getNumLoops();
const NdbDictionary::Table * table= ctx->getTab(); const NdbDictionary::Table * table= ctx->getTab();
HugoTransactions hugoTrans(* table); HugoTransactions hugoTrans(* table);
...@@ -557,7 +558,7 @@ int runEventApplier(NDBT_Context* ctx, NDBT_Step* step) ...@@ -557,7 +558,7 @@ int runEventApplier(NDBT_Context* ctx, NDBT_Step* step)
goto end; goto end;
} }
while(loops-- && !ctx->isTestStopped()) while(!ctx->isTestStopped())
{ {
int r; int r;
int count= 0; 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