summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <mronstrom@mysql.com>2004-07-30 12:46:27 +0200
committerunknown <mronstrom@mysql.com>2004-07-30 12:46:27 +0200
commitd392ff21307626e0b7605ebd3105eb45d2208863 (patch)
treeb463e2a7387cc9fb7aef9aa191daab9c023ab044
parentabfdb34830c19e45ee6b31c8a9c0534aaecf540f (diff)
downloadmariadb-git-d392ff21307626e0b7605ebd3105eb45d2208863.tar.gz
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.
-rw-r--r--ndb/src/ndbapi/Ndblist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/Ndblist.cpp b/ndb/src/ndbapi/Ndblist.cpp
index e557fdc0a5f..a27b911eb07 100644
--- a/ndb/src/ndbapi/Ndblist.cpp
+++ b/ndb/src/ndbapi/Ndblist.cpp
@@ -592,7 +592,7 @@ Ndb::releaseSignal(NdbApiSignal* aSignal)
#if defined VM_TRACE
// Check that signal is not null
assert(aSignal != NULL);
-
+#if 0
// Check that signal is not already in list
NdbApiSignal* tmp = theSignalIdleList;
while (tmp != NULL){
@@ -600,6 +600,7 @@ Ndb::releaseSignal(NdbApiSignal* aSignal)
tmp = tmp->next();
}
#endif
+#endif
creleaseSignals++;
aSignal->next(theSignalIdleList);
theSignalIdleList = aSignal;