Commit a3dc1a32 authored by joreland@mysql.com's avatar joreland@mysql.com

ndb - autotest fixes

parent cb6feb3a
...@@ -1097,7 +1097,7 @@ HugoTransactions::pkReadRecords(Ndb* pNdb, ...@@ -1097,7 +1097,7 @@ HugoTransactions::pkReadRecords(Ndb* pNdb,
pNdb->closeTransaction(pTrans); pNdb->closeTransaction(pTrans);
return NDBT_FAILED; return NDBT_FAILED;
} }
} else{ } else {
if(pIndexScanOp) if(pIndexScanOp)
{ {
int rows_found = 0; int rows_found = 0;
...@@ -1759,7 +1759,7 @@ HugoTransactions::indexReadRecords(Ndb* pNdb, ...@@ -1759,7 +1759,7 @@ HugoTransactions::indexReadRecords(Ndb* pNdb,
pNdb->closeTransaction(pTrans); pNdb->closeTransaction(pTrans);
return NDBT_FAILED; return NDBT_FAILED;
} }
check = 0; check = sOp->readTuples();
} }
if( check == -1 ) { if( check == -1 ) {
...@@ -1948,7 +1948,7 @@ HugoTransactions::indexUpdateRecords(Ndb* pNdb, ...@@ -1948,7 +1948,7 @@ HugoTransactions::indexUpdateRecords(Ndb* pNdb,
} }
if(ordered && check != 0){ if(ordered && check != 0){
g_err << "Row: " << r << " not found!!" << endl; g_err << check << " - Row: " << r << " not found!!" << endl;
pNdb->closeTransaction(pTrans); pNdb->closeTransaction(pTrans);
return NDBT_FAILED; return NDBT_FAILED;
} }
......
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