ndb - valgrind
Still leakage, make sure all unlinked operations are put back so they will be release (on failing blob operations, when AO_IgnoreError)
This commit is contained in:
parent
a03b282f17
commit
0cbb309b1a
@ -379,8 +379,30 @@ NdbConnection::execute(ExecType aTypeOfExec,
|
|||||||
* operations, making postExecute impossible
|
* operations, making postExecute impossible
|
||||||
*/
|
*/
|
||||||
if (abortOption == AO_IgnoreError)
|
if (abortOption == AO_IgnoreError)
|
||||||
|
{
|
||||||
|
if (theCompletedFirstOp != NULL)
|
||||||
|
{
|
||||||
|
if (tCompletedFirstOp != NULL)
|
||||||
|
{
|
||||||
|
tCompletedLastOp->next(theCompletedFirstOp);
|
||||||
|
theCompletedFirstOp = tCompletedFirstOp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
theCompletedFirstOp = tCompletedFirstOp;
|
||||||
|
theCompletedLastOp = tCompletedLastOp;
|
||||||
|
}
|
||||||
|
if (tPrepOp != NULL && tRestOp != NULL) {
|
||||||
|
if (theFirstOpInList == NULL)
|
||||||
|
theFirstOpInList = tRestOp;
|
||||||
|
else
|
||||||
|
theLastOpInList->next(tRestOp);
|
||||||
|
theLastOpInList = tLastOp;
|
||||||
|
}
|
||||||
DBUG_RETURN(-1);
|
DBUG_RETURN(-1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef ndb_api_crash_on_complex_blob_abort
|
#ifdef ndb_api_crash_on_complex_blob_abort
|
||||||
assert(theFirstOpInList == NULL && theLastOpInList == NULL);
|
assert(theFirstOpInList == NULL && theLastOpInList == NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user