ITS#8190 fix cursor EOF bug

vl32b
Howard Chu 10 years ago
parent ad87d6a3f4
commit 749633e48a
  1. 4
      libraries/liblmdb/mdb.c

@ -5924,8 +5924,10 @@ set2:
if (leaf == NULL) { if (leaf == NULL) {
DPUTS("===> inexact leaf not found, goto sibling"); 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 */ return rc; /* no entries matched */
}
mp = mc->mc_pg[mc->mc_top]; mp = mc->mc_pg[mc->mc_top];
mdb_cassert(mc, IS_LEAF(mp)); mdb_cassert(mc, IS_LEAF(mp));
leaf = NODEPTR(mp, 0); leaf = NODEPTR(mp, 0);

Loading…
Cancel
Save