Skip to content

Commit 951a44e

Browse files
committed
Drop unused setRange arg to BerkeleyBatch::ReadAtCursor
1 parent d262789 commit 951a44e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/wallet/db.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)