]> git.sur5r.net Git - openldap/commitdiff
Fix cursor
authorKurt Zeilenga <kurt@openldap.org>
Mon, 9 Sep 2002 18:26:43 +0000 (18:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 9 Sep 2002 18:26:43 +0000 (18:26 +0000)
servers/slapd/back-bdb/search.c

index d9fadde8290872cc2df52c9b801d1924c0efa3ec..0810625ada18c3764545946b665623d3b406c5dc 100644 (file)
@@ -295,11 +295,9 @@ dn2entry_retry:
        /* need normalized dn below */
        ber_dupbv( &realbase, &e->e_nname );
 
-       /* start cursor at base entry's id 
-        * FIXME: hack to make "" base work
-        * FIXME: moddn needs to assign new ID for this to work
+       /* start cursor at beginning of candidates.
         */
-       cursor = e->e_id == NOID ? 1 : e->e_id;
+       cursor = 0;
 
        if ( e != &slap_entry_root ) {
                bdb_cache_return_entry_r(bdb->bi_dbenv, &bdb->bi_cache, e, &lock);