From 10622b1d0ad4cc6899f67ef7be07689e70d3ee7a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 12 Oct 2003 07:31:31 +0000 Subject: [PATCH] Further cleanup last commit. --- servers/slapd/back-bdb/add.c | 3 +-- servers/slapd/back-ldbm/add.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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); -- 2.39.5