]> git.sur5r.net Git - openldap/commitdiff
Further cleanup last commit.
authorKurt Zeilenga <kurt@openldap.org>
Sun, 12 Oct 2003 07:31:31 +0000 (07:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 12 Oct 2003 07:31:31 +0000 (07:31 +0000)
servers/slapd/back-bdb/add.c
servers/slapd/back-ldbm/add.c

index 636bb3391f67105a286a683a18ec510a4b3ee504..7d5849e0cf90b67fb628ec2fb762d613801ff7d6 100644 (file)
@@ -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
index 8732b3e4e2ecbd017788d24c572458ba0a96073b..f6c12495cd074a6712fc64c6140eb43db27994c2 100644 (file)
@@ -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);