From 897d4dfb8903efe4b3ba8cc6ed7d7114f3a86f62 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 19 Jun 2007 13:56:02 +0200 Subject: [PATCH] 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(-) 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;