File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -315,20 +315,14 @@ class BerkeleyBatch
315315 return pcursor;
316316 }
317317
318- int ReadAtCursor (Dbc* pcursor, CDataStream& ssKey, CDataStream& ssValue, bool setRange = false )
318+ int ReadAtCursor (Dbc* pcursor, CDataStream& ssKey, CDataStream& ssValue)
319319 {
320320 // Read at cursor
321321 Dbt datKey;
322- unsigned int fFlags = DB_NEXT;
323- if (setRange) {
324- datKey.set_data (ssKey.data ());
325- datKey.set_size (ssKey.size ());
326- fFlags = DB_SET_RANGE;
327- }
328322 Dbt datValue;
329323 datKey.set_flags (DB_DBT_MALLOC);
330324 datValue.set_flags (DB_DBT_MALLOC);
331- int ret = pcursor->get (&datKey, &datValue, fFlags );
325+ int ret = pcursor->get (&datKey, &datValue, DB_NEXT );
332326 if (ret != 0 )
333327 return ret;
334328 else if (datKey.get_data () == nullptr || datValue.get_data () == nullptr )
You can’t perform that action at this time.
0 commit comments