fixed testNdbApi to use new startTransaction interface

parent 43f63e80
...@@ -119,6 +119,9 @@ int runTestMaxTransaction(NDBT_Context* ctx, NDBT_Step* step){ ...@@ -119,6 +119,9 @@ int runTestMaxTransaction(NDBT_Context* ctx, NDBT_Step* step){
return NDBT_FAILED; return NDBT_FAILED;
} }
const NdbDictionary::Table* pTab = ctx->getTab();
if (pTab == 0) abort();
while (l < loops && result == NDBT_OK){ while (l < loops && result == NDBT_OK){
int errors = 0; int errors = 0;
int maxErrors = 5; int maxErrors = 5;
...@@ -137,7 +140,7 @@ int runTestMaxTransaction(NDBT_Context* ctx, NDBT_Step* step){ ...@@ -137,7 +140,7 @@ int runTestMaxTransaction(NDBT_Context* ctx, NDBT_Step* step){
pCon = pNdb->startTransaction(); pCon = pNdb->startTransaction();
break; break;
case 1: case 1:
pCon = pNdb->startTransaction(2, pCon = pNdb->startTransaction(pTab,
"DATA", "DATA",
4); 4);
break; break;
......
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