mirror of
https://github.com/MariaDB/server.git
synced 2025-11-15 09:02:33 +03:00
ndb - bug#20252
allow user to specify scan batch size in readTuples
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user