Understood, thank you!
Kind Regards, Maxim Gurschi
On 1 Feb 2024, at 17:53, Howard Chu hyc@symas.com wrote:
M Gurschi wrote:
Hello team,
Can you please let me know, when using *mdb_cursor_get* with *MDB_SET* operation, in case the key is not present in the db, where is the cursor left pointing?
My scenario is that i want to retrieve two adjacent keys.
- first *mdb_cursor_get* with *MDB_SET*
- after that, *mdb_cursor_get* with *MDB_NEXT*
I'm wondering what can i expect the cursor to point at in case the key is not found in step 1.
You cannot expect anything in particular.
Use MDB_SET_RANGE instead.