ITS#8190 fix cursor EOF bug

mdb.RE/0.9
Howard Chu 10 years ago
parent 1b6085cb9b
commit 7513bd4618
  1. 4
      libraries/liblmdb/mdb.c

@ -5725,8 +5725,10 @@ set2:
if (leaf == NULL) {
DPUTS("===> inexact leaf not found, goto sibling");
if ((rc = mdb_cursor_sibling(mc, 1)) != MDB_SUCCESS)
if ((rc = mdb_cursor_sibling(mc, 1)) != MDB_SUCCESS) {
mc->mc_flags |= C_EOF;
return rc; /* no entries matched */
}
mp = mc->mc_pg[mc->mc_top];
mdb_cassert(mc, IS_LEAF(mp));
leaf = NODEPTR(mp, 0);

Loading…
Cancel
Save