From 895f2f15afcb7a4c4fba530318e3f3dba9e052bf Mon Sep 17 00:00:00 2001 From: "tomas@whalegate.ndb.mysql.com" <> Date: Tue, 19 Jun 2007 13:56:02 +0200 Subject: Bug #29185 Large IN list crashes mysqld with cluster and condition pushdown --- sql/ha_ndbcluster_cond.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sql/ha_ndbcluster_cond.h') 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; -- cgit v1.2.1