diff options
author | tomas@whalegate.ndb.mysql.com <> | 2007-06-19 13:56:02 +0200 |
---|---|---|
committer | tomas@whalegate.ndb.mysql.com <> | 2007-06-19 13:56:02 +0200 |
commit | 895f2f15afcb7a4c4fba530318e3f3dba9e052bf (patch) | |
tree | f9a4b59b23e856e1cd66799b513d5a82ccd9d7b8 /sql | |
parent | 79ad6ff22af83b305d2dfeb45b80667747a94665 (diff) | |
download | mariadb-git-895f2f15afcb7a4c4fba530318e3f3dba9e052bf.tar.gz |
Bug #29185 Large IN list crashes mysqld with cluster and condition pushdown
Diffstat (limited to 'sql')
-rw-r--r-- | sql/ha_ndbcluster_cond.h | 6 |
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; |