summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authortomas@poseidon.ndb.mysql.com <>2004-10-07 16:01:41 +0000
committertomas@poseidon.ndb.mysql.com <>2004-10-07 16:01:41 +0000
commit9035aab33cea3e3353f39a28550116e04aea07be (patch)
treef9fb2c23a86eb90b08f7aea2336489007b3aea64 /sql/ha_ndbcluster.cc
parent294bcf2cc04adb5c527a2e11f817c2d0b319f32e (diff)
downloadmariadb-git-9035aab33cea3e3353f39a28550116e04aea07be.tar.gz
fixed bug where scan is not closed as it should
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc3
1 files changed, 3 insertions, 0 deletions
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;