From: Howard Chu Date: Thu, 6 Dec 2007 15:59:28 +0000 (+0000) Subject: Drop unnecessary lock X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~344 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3658226e955210279f2416b502406df56d3447fb;p=openldap Drop unnecessary lock --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 1f5f75cef0..bddbe79283 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -546,7 +546,6 @@ hdb_dn2id_add( struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private; DB *db = bdb->bi_dn2id->bdi_db; DBT key, data; - DB_LOCK lock; ID nid; int rc, rlen, nrlen; diskNode *d; @@ -580,10 +579,6 @@ hdb_dn2id_add( key.data = &nid; - /* We hold this lock until the TXN completes */ - rc = bdb_dn2id_lock( bdb, &e->e_nname, 1, TXN_ID( txn ), &lock ); - if ( rc ) goto leave; - /* Need to make dummy root node once. Subsequent attempts * will fail harmlessly. */