mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
More places where LOCK_ID() calls need to be checked.
This commit is contained in:
parent
041c3700e1
commit
9fc4a749dc
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user