summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster_cond.h
diff options
context:
space:
mode:
authorunknown <tomas@whalegate.ndb.mysql.com>2007-06-19 13:56:02 +0200
committerunknown <tomas@whalegate.ndb.mysql.com>2007-06-19 13:56:02 +0200
commit897d4dfb8903efe4b3ba8cc6ed7d7114f3a86f62 (patch)
treef9a4b59b23e856e1cd66799b513d5a82ccd9d7b8 /sql/ha_ndbcluster_cond.h
parent228fc721a9d4ef572d6ae9a53736a2adc5106e47 (diff)
downloadmariadb-git-897d4dfb8903efe4b3ba8cc6ed7d7114f3a86f62.tar.gz
Bug #29185 Large IN list crashes mysqld with cluster and condition pushdown
Diffstat (limited to 'sql/ha_ndbcluster_cond.h')
-rw-r--r--sql/ha_ndbcluster_cond.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/ha_ndbcluster_cond.h b/sql/ha_ndbcluster_cond.h
index adc12e8cd74..6baf6945b58 100644
--- a/sql/ha_ndbcluster_cond.h
+++ b/sql/ha_ndbcluster_cond.h
@@ -265,16 +265,12 @@ class Ndb_cond : public Sql_alloc
Note - doing it recursively causes stack issues for
big IN clauses
*/
- if (prev != NULL)
- {
- next= prev= NULL;
- return;
- }
Ndb_cond *n= next;
while (n)
{
Ndb_cond *tmp= n;
n= n->next;
+ tmp->next= NULL;
delete tmp;
}
next= prev= NULL;