MDB_NEXT was fine before, duh.
vmware
Howard Chu 12 years ago
parent 99427aa7de
commit 2d0b362b6f
  1. 6
      libraries/liblmdb/mdb.c

@ -4947,11 +4947,9 @@ fetchm:
case MDB_NEXT: case MDB_NEXT:
case MDB_NEXT_DUP: case MDB_NEXT_DUP:
case MDB_NEXT_NODUP: case MDB_NEXT_NODUP:
if (!(mc->mc_flags & C_INITIALIZED)) { if (!(mc->mc_flags & C_INITIALIZED))
rc = mdb_cursor_first(mc, key, data); rc = mdb_cursor_first(mc, key, data);
if (rc) else
break;
} else
rc = mdb_cursor_next(mc, key, data, op); rc = mdb_cursor_next(mc, key, data, op);
break; break;
case MDB_PREV: case MDB_PREV:

Loading…
Cancel
Save