Commit 71ead013 authored by unknown's avatar unknown
Browse files

testScan - ReadWithLocksAndInserts

testBasic LocksAndInserts


ndb/test/src/HugoTransactions.cpp:
  Fix HugoTransaction::load so that transaction is closed and started if
  error is found
parent aa55c005
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -729,10 +729,9 @@ HugoTransactions::loadTable(Ndb* pNdb,
      NdbSleep_MilliSleep(doSleep);

    //    if (first_batch || !oneTrans) {
    if (first_batch) {
    if (first_batch || !pTrans) {
      first_batch = false;
      pTrans = pNdb->startTransaction();
    
      if (pTrans == NULL) {
        const NdbError err = pNdb->getNdbError();

@@ -786,7 +785,7 @@ HugoTransactions::loadTable(Ndb* pNdb,
    if(check == -1 ) {
      const NdbError err = pTrans->getNdbError();
      pNdb->closeTransaction(pTrans);
      
      pTrans= 0;
      switch(err.status){
      case NdbError::Success:
	ERR(err);
@@ -828,6 +827,7 @@ HugoTransactions::loadTable(Ndb* pNdb,
    else{
      if (closeTrans) {
        pNdb->closeTransaction(pTrans);
	pTrans= 0;
      }
    }