Commit 2973728a authored by mronstrom@mysql.com's avatar mronstrom@mysql.com

Removed an error check from debug mode that gets executed

n**2 times in closeTransaction where n is number of signals
sent in transaction. n can easily become 250.000 in a large
transaction.
parent 73360e55
...@@ -592,13 +592,14 @@ Ndb::releaseSignal(NdbApiSignal* aSignal) ...@@ -592,13 +592,14 @@ Ndb::releaseSignal(NdbApiSignal* aSignal)
#if defined VM_TRACE #if defined VM_TRACE
// Check that signal is not null // Check that signal is not null
assert(aSignal != NULL); assert(aSignal != NULL);
#if 0
// Check that signal is not already in list // Check that signal is not already in list
NdbApiSignal* tmp = theSignalIdleList; NdbApiSignal* tmp = theSignalIdleList;
while (tmp != NULL){ while (tmp != NULL){
assert(tmp != aSignal); assert(tmp != aSignal);
tmp = tmp->next(); tmp = tmp->next();
} }
#endif
#endif #endif
creleaseSignals++; creleaseSignals++;
aSignal->next(theSignalIdleList); aSignal->next(theSignalIdleList);
......
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