mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#7581 more for prev commit
This commit is contained in:
parent
82d7e9d8ab
commit
3d5e7ef0d2
@ -248,7 +248,7 @@ int bdb_entry_release(
|
||||
/* slapMode : SLAP_SERVER_MODE, SLAP_TOOL_MODE,
|
||||
SLAP_TRUNCATE_MODE, SLAP_UNDEFINED_MODE */
|
||||
|
||||
if ( slapMode == SLAP_SERVER_MODE ) {
|
||||
if ( slapMode & SLAP_SERVER_MODE ) {
|
||||
/* If not in our cache, just free it */
|
||||
if ( !e->e_private ) {
|
||||
#ifdef SLAP_ZONE_ALLOC
|
||||
@ -410,7 +410,7 @@ return_results:
|
||||
bdb_cache_return_entry_rw(bdb, e, rw, &lock);
|
||||
|
||||
} else {
|
||||
if ( slapMode == SLAP_SERVER_MODE ) {
|
||||
if ( slapMode & SLAP_SERVER_MODE ) {
|
||||
*ent = e;
|
||||
/* big drag. we need a place to store a read lock so we can
|
||||
* release it later?? If we're in a txn, nothing is needed
|
||||
|
@ -271,7 +271,7 @@ int mdb_entry_release(
|
||||
SLAP_TRUNCATE_MODE, SLAP_UNDEFINED_MODE */
|
||||
|
||||
mdb_entry_return( op, e );
|
||||
if ( slapMode == SLAP_SERVER_MODE ) {
|
||||
if ( slapMode & SLAP_SERVER_MODE ) {
|
||||
OpExtra *oex;
|
||||
LDAP_SLIST_FOREACH( oex, &op->o_extra, oe_next ) {
|
||||
if ( oex->oe_key == mdb ) {
|
||||
|
Loading…
Reference in New Issue
Block a user