diff options
author | unknown <jonas@perch.ndb.mysql.com> | 2006-06-27 11:41:00 +0200 |
---|---|---|
committer | unknown <jonas@perch.ndb.mysql.com> | 2006-06-27 11:41:00 +0200 |
commit | f105602806c030f7a2252843986e048d35cb13f3 (patch) | |
tree | 3a328ac2db9a2ef68b6b47edc3609e5daf4e581f /ndb/include/ndbapi/NdbIndexScanOperation.hpp | |
parent | 841a5b7a648d3ea95b7c218ed797567b1151af2a (diff) | |
download | mariadb-git-f105602806c030f7a2252843986e048d35cb13f3.tar.gz |
ndb - bug#20252
allow user to specify scan batch size in readTuples
ndb/include/ndbapi/NdbIndexScanOperation.hpp:
Allow user to specify batch size
ndb/include/ndbapi/NdbScanOperation.hpp:
Allow user to specify batch size
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
Fix so that last row works even if batch is complete
ndb/src/ndbapi/NdbReceiver.cpp:
Allow user yo specify batch size
ndb/src/ndbapi/NdbScanOperation.cpp:
Allow user to specify batchsize
Diffstat (limited to 'ndb/include/ndbapi/NdbIndexScanOperation.hpp')
-rw-r--r-- | ndb/include/ndbapi/NdbIndexScanOperation.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ndb/include/ndbapi/NdbIndexScanOperation.hpp b/ndb/include/ndbapi/NdbIndexScanOperation.hpp index e9f92d84d1c..e7393bdfd17 100644 --- a/ndb/include/ndbapi/NdbIndexScanOperation.hpp +++ b/ndb/include/ndbapi/NdbIndexScanOperation.hpp @@ -41,7 +41,9 @@ public: * @param parallel No of fragments to scan in parallel (0=max) */ virtual int readTuples(LockMode lock_mode = LM_Read, - Uint32 scan_flags = 0, Uint32 parallel = 0); + Uint32 scan_flags = 0, + Uint32 parallel = 0, + Uint32 batch = 0); #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL /** @@ -66,7 +68,7 @@ public: (SF_OrderBy & -(Int32)order_by) | (SF_Descending & -(Int32)order_desc) | (SF_ReadRangeNo & -(Int32)read_range_no); - return readTuples(lock_mode, scan_flags, parallel); + return readTuples(lock_mode, scan_flags, parallel, batch); } #endif |