https://bugs.openldap.org/show_bug.cgi?id=9723
--- Comment #1 from stephan.j.bircher@gmail.com --- CORRECTION:
// search for an non-existent key rc = mdb_cursor_get(cursor, &key, &val, MDB_SET_RANGE); if (rc == MDB_NOTFOUND) { // C_EOF is set on the cursor flags