diff options
author | unknown <tomas@poseidon.ndb.mysql.com[tomas]> | 2005-11-05 22:55:51 +0100 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com[tomas]> | 2005-11-05 22:55:51 +0100 |
commit | cca0ce5b3e4839da42435acdea4955f0912f7bd0 (patch) | |
tree | b45c913b25253fbaec3aea73149f98fcbf15a5b2 /storage/ndb/test/ndbapi/test_event.cpp | |
parent | e610dc133fd7e382f693581c97818f1be0413343 (diff) | |
download | mariadb-git-cca0ce5b3e4839da42435acdea4955f0912f7bd0.tar.gz |
ndb - fix conflicting error codes
Diffstat (limited to 'storage/ndb/test/ndbapi/test_event.cpp')
-rw-r--r-- | storage/ndb/test/ndbapi/test_event.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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; |