diff options
author | unknown <joreland@mysql.com> | 2004-07-05 20:41:06 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2004-07-05 20:41:06 +0200 |
commit | 3f3ea3037a5575a4f2121592ddc40c3441962c15 (patch) | |
tree | b4082f771ebab948c620cb0d233207efb4b47097 /sql/ha_ndbcluster.cc | |
parent | 8aac8515fb090d5a93b0cf715eabe66cacd404a5 (diff) | |
download | mariadb-git-3f3ea3037a5575a4f2121592ddc40c3441962c15.tar.gz |
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
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; |