Commit 497f8063 authored by unknown's avatar unknown

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
parent f401d7da
......@@ -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 );
......
......@@ -88,8 +88,8 @@ int main(int argc, const char** argv){
}
_tabname = argv[optind];
#ifndef DBUG_OFF
my_init();
#ifndef DBUG_OFF
if (debug_option)
DBUG_PUSH(debug_option);
#endif
......
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