Bug #29185 Large IN list crashes mysqld with cluster and condition pushdown

This commit is contained in:
tomas@whalegate.ndb.mysql.com 2007-06-19 13:56:02 +02:00
parent 79ad6ff22a
commit 895f2f15af

View File

@ -265,16 +265,12 @@ class Ndb_cond : public Sql_alloc
Note - doing it recursively causes stack issues for Note - doing it recursively causes stack issues for
big IN clauses big IN clauses
*/ */
if (prev != NULL)
{
next= prev= NULL;
return;
}
Ndb_cond *n= next; Ndb_cond *n= next;
while (n) while (n)
{ {
Ndb_cond *tmp= n; Ndb_cond *tmp= n;
n= n->next; n= n->next;
tmp->next= NULL;
delete tmp; delete tmp;
} }
next= prev= NULL; next= prev= NULL;