mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Drop unnecessary lock
This commit is contained in:
parent
e237f4cc43
commit
3658226e95
@ -546,7 +546,6 @@ hdb_dn2id_add(
|
|||||||
struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
|
struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
|
||||||
DB *db = bdb->bi_dn2id->bdi_db;
|
DB *db = bdb->bi_dn2id->bdi_db;
|
||||||
DBT key, data;
|
DBT key, data;
|
||||||
DB_LOCK lock;
|
|
||||||
ID nid;
|
ID nid;
|
||||||
int rc, rlen, nrlen;
|
int rc, rlen, nrlen;
|
||||||
diskNode *d;
|
diskNode *d;
|
||||||
@ -580,10 +579,6 @@ hdb_dn2id_add(
|
|||||||
|
|
||||||
key.data = &nid;
|
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
|
/* Need to make dummy root node once. Subsequent attempts
|
||||||
* will fail harmlessly.
|
* will fail harmlessly.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user