Commit 8a50791a authored by unknown's avatar unknown

Merge sama.ndb.mysql.com:/export/space/pekka/ndb/version/my50-bug29390

into  sama.ndb.mysql.com:/export/space/pekka/ndb/version/my51-bug29390


storage/ndb/src/ndbapi/NdbScanFilter.cpp:
  Auto merged
parents 6340f77c eff940c7
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <Interpreter.hpp> #include <Interpreter.hpp>
#include <signaldata/AttrInfo.hpp> #include <signaldata/AttrInfo.hpp>
#include "NdbApiSignal.hpp" #include "NdbApiSignal.hpp"
#include "NdbUtil.hpp"
#ifdef VM_TRACE #ifdef VM_TRACE
#include <NdbEnv.h> #include <NdbEnv.h>
...@@ -621,12 +622,43 @@ NdbScanFilterImpl::handle_filter_too_large() ...@@ -621,12 +622,43 @@ NdbScanFilterImpl::handle_filter_too_large()
op->theStatus = m_initial_op_status; op->theStatus = m_initial_op_status;
// reset interpreter state to initial // reset interpreter state to initial
NdbBranch* tBranch = op->theFirstBranch;
while (tBranch != NULL) {
NdbBranch* tmp = tBranch;
tBranch = tBranch->theNext;
op->theNdb->releaseNdbBranch(tmp);
}
op->theFirstBranch = NULL; op->theFirstBranch = NULL;
op->theLastBranch = NULL; op->theLastBranch = NULL;
NdbLabel* tLabel = op->theFirstLabel;
while (tLabel != NULL) {
NdbLabel* tmp = tLabel;
tLabel = tLabel->theNext;
op->theNdb->releaseNdbLabel(tmp);
}
op->theFirstLabel = NULL;
op->theLastLabel = NULL;
NdbCall* tCall = op->theFirstCall;
while (tCall != NULL) {
NdbCall* tmp = tCall;
tCall = tCall->theNext;
op->theNdb->releaseNdbCall(tmp);
}
op->theFirstCall = NULL; op->theFirstCall = NULL;
op->theLastCall = NULL; op->theLastCall = NULL;
NdbSubroutine* tSubroutine = op->theFirstSubroutine;
while (tSubroutine != NULL) {
NdbSubroutine* tmp = tSubroutine;
tSubroutine = tSubroutine->theNext;
op->theNdb->releaseNdbSubroutine(tmp);
}
op->theFirstSubroutine = NULL; op->theFirstSubroutine = NULL;
op->theLastSubroutine = NULL; op->theLastSubroutine = NULL;
op->theNoOfLabels = 0; op->theNoOfLabels = 0;
op->theNoOfSubroutines = 0; op->theNoOfSubroutines = 0;
......
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