Menu

#9 Prefetch_array_size does not set in open method

open
nobody
None
5
2008-02-01
2008-02-01
KBac
No

OTL 4.0.161.
Class: otl_tmpl_select_cursor.
Method:
void open
(OTL_TMPL_CONNECT& db,
otl_stream_buffer_size_type arr_size=1)
{
local_override.reset();
cur_row=-1;
row_count=0;
cur_size=0;
array_size=arr_size;
OTL_TMPL_CURSOR::open(db);
}

Array_size is set up, but prefetch_array_size is not.
Do like constructor:
select_cursor_struct.set_arr_size
(arr_size,
array_size,
prefetch_array_size);
select_cursor_struct.init(array_size);

Discussion


Log in to post a comment.

MongoDB Logo MongoDB