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

This commit is contained in:
Kurt Zeilenga 2002-08-20 02:57:06 +00:00
parent 041c3700e1
commit 9fc4a749dc
6 changed files with 12 additions and 4 deletions

View File

@ -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 */

View File

@ -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:

View File

@ -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:

View File

@ -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 */

View File

@ -39,6 +39,7 @@ bdb_referrals(
return rc;
}
/* XXYYZ: need to check return value */
LOCK_ID ( bdb->bi_dbenv, &locker );
dn2entry_retry:

View File

@ -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 ) {