diff options
author | unknown <tomas@poseidon.(none)> | 2004-09-15 17:25:59 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.(none)> | 2004-09-15 17:25:59 +0000 |
commit | 497f8063098e6a03f27be60bd4d3c66cf4efec6f (patch) | |
tree | 0452a168a847a8d5cdb7700be6b6800cfb974eeb /ndb/test/src | |
parent | f401d7da87989acc29ba1b5f99eca91ac6b2849a (diff) | |
download | mariadb-git-497f8063098e6a03f27be60bd4d3c66cf4efec6f.tar.gz |
HugoTransactions.cpp
changed to do execute(commit);restart() transaction instead of closeTransaction();start new
select_all.cpp
moved my_init outside DBUG_OFF
ndb/test/src/HugoTransactions.cpp:
changed to do execute(commit);restart() transaction instead of closeTransaction();start new
ndb/tools/select_all.cpp:
moved my_init outside DBUG_OFF
Diffstat (limited to 'ndb/test/src')
-rw-r--r-- | ndb/test/src/HugoTransactions.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ndb/test/src/HugoTransactions.cpp b/ndb/test/src/HugoTransactions.cpp index 05039562c76..53809ecc851 100644 --- a/ndb/test/src/HugoTransactions.cpp +++ b/ndb/test/src/HugoTransactions.cpp @@ -728,7 +728,8 @@ HugoTransactions::loadTable(Ndb* pNdb, if (doSleep > 0) NdbSleep_MilliSleep(doSleep); - if (first_batch || !oneTrans) { + // if (first_batch || !oneTrans) { + if (first_batch) { first_batch = false; pTrans = pNdb->startTransaction(); @@ -774,8 +775,10 @@ HugoTransactions::loadTable(Ndb* pNdb, // Execute the transaction and insert the record if (!oneTrans || (c + batch) >= records) { - closeTrans = true; + // closeTrans = true; + closeTrans = false; check = pTrans->execute( Commit ); + pTrans->restart(); } else { closeTrans = false; check = pTrans->execute( NoCommit ); |