ndb - Fix memory leak in HugoLoad

This commit is contained in:
joreland@mysql.com 2004-12-13 08:56:53 +01:00
parent 8ff94e1201
commit a5ce66f48f

View file

@ -865,7 +865,7 @@ HugoTransactions::loadTable(Ndb* pNdb,
g_info << "|- Inserting records..." << endl;
for (int c=0 ; c<records ; ){
bool closeTrans;
bool closeTrans = true;
if (retryAttempt >= retryMax){
g_info << "Record " << c << " could not be inserted, has retried "
<< retryAttempt << " times " << endl;
@ -983,6 +983,9 @@ HugoTransactions::loadTable(Ndb* pNdb,
c = c+batch;
retryAttempt = 0;
}
if(pTrans)
pNdb->closeTransaction(pTrans);
return NDBT_OK;
}