From c2d6d2c04b0d6ce621fc427ae51e58d721da50f3 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 7 Oct 2004 16:01:41 +0000 Subject: [PATCH] fixed bug where scan is not closed as it should --- sql/ha_ndbcluster.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 8faa0b33756..bb6ace75f1f 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -2170,6 +2170,9 @@ int ha_ndbcluster::index_read(byte *buf, break; } + if (m_active_cursor) + close_scan(); + key_range start_key; start_key.key = key; start_key.length = key_len;