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
315
315
return pcursor;
316
316
}
317
317
318
- int ReadAtCursor (Dbc* pcursor, CDataStream& ssKey, CDataStream& ssValue, bool setRange = false )
318
+ int ReadAtCursor (Dbc* pcursor, CDataStream& ssKey, CDataStream& ssValue)
319
319
{
320
320
// Read at cursor
321
321
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
- }
328
322
Dbt datValue;
329
323
datKey.set_flags (DB_DBT_MALLOC);
330
324
datValue.set_flags (DB_DBT_MALLOC);
331
- int ret = pcursor->get (&datKey, &datValue, fFlags );
325
+ int ret = pcursor->get (&datKey, &datValue, DB_NEXT );
332
326
if (ret != 0 )
333
327
return ret;
334
328
else if (datKey.get_data () == nullptr || datValue.get_data () == nullptr )
You can’t perform that action at this time.
0 commit comments