Skip to content

Commit 0516a4c

Browse files
committed
Fix mdbx seek behaviour
1 parent 3f675fa commit 0516a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbwrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ MDBXIterator::~MDBXIterator()
608608
void MDBXIterator::SeekImpl(Span<const std::byte> key)
609609
{
610610
mdbx::slice slKey(CharCast(key.data()), key.size());
611-
valid = m_impl_iter->cursor->seek(slKey);
611+
valid = m_impl_iter->cursor->lower_bound(slKey);
612612
}
613613

614614
CDBIteratorBase* MDBXWrapper::NewIterator()

0 commit comments

Comments
 (0)