Skip to content
Snippets Groups Projects
Commit 9fc4a749 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

More places where LOCK_ID() calls need to be checked.

parent 041c3700
Branches
Tags
No related merge requests found
......@@ -67,10 +67,12 @@ bdb_attribute(
txn = boi->boi_txn;
}
if ( txn != NULL )
if ( txn != NULL ) {
locker = TXN_ID ( txn );
else
} else {
/* XXYYZ: need to check return value */
LOCK_ID ( bdb->bi_dbenv, &locker );
}
if (target != NULL && dn_match(&target->e_nname, entry_ndn)) {
/* we already have a LOCKED copy of the entry */
......
......@@ -49,6 +49,7 @@ bdb_bind(
Debug( LDAP_DEBUG_ARGS, "==> bdb_bind: dn: %s\n", dn->bv_val, 0, 0);
#endif
/* XXYYZ: need to check return value */
LOCK_ID(bdb->bi_dbenv, &locker);
dn2entry_retry:
......
......@@ -34,6 +34,7 @@ bdb_compare(
u_int32_t locker;
DB_LOCK lock;
/* XXYYZ: need to check return value */
LOCK_ID ( bdb->bi_dbenv, &locker );
dn2entry_retry:
......
......@@ -79,10 +79,12 @@ bdb_group(
txn = boi->boi_txn;
}
if ( txn )
if ( txn ) {
locker = TXN_ID( txn );
else
} else {
/* XXYYZ: need to check return value */
LOCK_ID ( bdb->bi_dbenv, &locker );
}
if (dn_match(&target->e_name, gr_ndn)) {
/* we already have a LOCKED copy of the entry */
......
......@@ -39,6 +39,7 @@ bdb_referrals(
return rc;
}
/* XXYYZ: need to check return value */
LOCK_ID ( bdb->bi_dbenv, &locker );
dn2entry_retry:
......
......@@ -71,6 +71,7 @@ bdb_search(
manageDSAit = get_manageDSAit( op );
/* XXYYZ: need to check return value */
LOCK_ID (bdb->bi_dbenv, &locker );
if ( nbase->bv_len == 0 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment