From 3f3ea3037a5575a4f2121592ddc40c3441962c15 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 5 Jul 2004 20:41:06 +0200 Subject: Fixed bugs in ordered scan discovered by mysql-test-run Enabled ordered scan in handler ndb/include/ndbapi/NdbIndexScanOperation.hpp: Moved saveBound to NdbIndexScanOperation ndb/include/ndbapi/NdbScanOperation.hpp: Moved saveBound to NdbIndexScanOperation ndb/src/ndbapi/NdbDictionaryImpl.cpp: Introduced map for index attributes (keys) -> real attr id (and back) ndb/src/ndbapi/NdbDictionaryImpl.hpp: Introduced map for index attributes (keys) -> real attr id (and back) ndb/src/ndbapi/NdbOperationDefine.cpp: Moved saveBound to NdbIndexScanOperation ndb/src/ndbapi/NdbOperationInt.cpp: Moved saveBound to NdbIndexScanOperation ndb/src/ndbapi/NdbScanOperation.cpp: Moved saveBound to NdbIndexScanOperation Fixed bugs in handling of setBounds w.r.t getValues and index keys (use new reverse map) Fixed bugs in next_result_ordered sql/ha_ndbcluster.cc: Use sorted scan when requested --- sql/ha_ndbcluster.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql/ha_ndbcluster.cc') diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index e3a63eacd22..403306c786e 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -871,7 +871,8 @@ int ha_ndbcluster::ordered_index_scan(const key_range *start_key, index_name= get_index_name(active_index); if (!(op= trans->getNdbIndexScanOperation(index_name, m_tabname))) ERR_RETURN(trans->getNdbError()); - if (!(cursor= op->readTuples(get_ndb_lock_type(m_lock.type), 0,parallelism))) + if (!(cursor= op->readTuples(get_ndb_lock_type(m_lock.type), 0, + parallelism, sorted))) ERR_RETURN(trans->getNdbError()); m_active_cursor= cursor; -- cgit v1.2.1