From: Kurt Zeilenga Date: Sun, 12 Oct 2003 07:31:31 +0000 (+0000) Subject: Further cleanup last commit. X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~590 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=10622b1d0ad4cc6899f67ef7be07689e70d3ee7a;p=openldap Further cleanup last commit. --- diff --git a/servers/slapd/back-bdb/add.c b/servers/slapd/back-bdb/add.c index 636bb3391f..7d5849e0cf 100644 --- a/servers/slapd/back-bdb/add.c +++ b/servers/slapd/back-bdb/add.c @@ -285,8 +285,7 @@ retry: /* transaction retry */ * no parent! * if not attempting to add entry at suffix or with parent "" */ - if (( !be_isroot( op->o_bd, &op->o_ndn ) - || !dn_match( &pdn, &slap_empty_bv )) + if (( !be_isroot( op->o_bd, &op->o_ndn ) || pdn.bv_len > 0 ) && !is_entry_glue( op->oq_add.rs_e )) { #ifdef NEW_LOGGING diff --git a/servers/slapd/back-ldbm/add.c b/servers/slapd/back-ldbm/add.c index 8732b3e4e2..f6c12495cd 100644 --- a/servers/slapd/back-ldbm/add.c +++ b/servers/slapd/back-ldbm/add.c @@ -234,8 +234,7 @@ ldbm_back_add( } else { assert( pdn.bv_val == NULL || *pdn.bv_val != '\0' ); - if (( !be_isroot( op->o_bd, &op->o_ndn ) - || !dn_match( &pdn, &slap_empty_bv )) + if ( !be_isroot( op->o_bd, &op->o_ndn ) && !is_entry_glue( op->oq_add.rs_e )) { ldap_pvt_thread_rdwr_wunlock(&li->li_giant_rwlock);