From: Kurt Zeilenga Date: Sun, 16 Mar 2003 18:48:44 +0000 (+0000) Subject: reorder to statements for debugging purposes X-Git-Tag: NO_SLAP_OP_BLOCKS~102 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6c7a1194c3e32aa719b3e46f0f7cb17ce30c8e08;p=openldap reorder to statements for debugging purposes --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index ce639d26bc..bbd63bd3d3 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -343,13 +343,13 @@ dn2entry_retry: scope, deref, candidates ); } - /* need normalized dn below */ - ber_dupbv( &realbase, &e->e_nname ); - /* start cursor at beginning of candidates. */ cursor = 0; + /* need normalized dn below */ + ber_dupbv( &realbase, &e->e_nname ); + if ( e != &slap_entry_root ) { bdb_cache_return_entry_r(bdb->bi_dbenv, &bdb->bi_cache, e, &lock); }