mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
ndb - Fix memory leak in HugoLoad
This commit is contained in:
parent
8ff94e1201
commit
a5ce66f48f
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue