Skip to content
Snippets Groups Projects
Commit d9630e93 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7581 more for prev commit

parent 471e39b7
No related branches found
No related tags found
No related merge requests found
...@@ -248,7 +248,7 @@ int bdb_entry_release( ...@@ -248,7 +248,7 @@ int bdb_entry_release(
/* slapMode : SLAP_SERVER_MODE, SLAP_TOOL_MODE, /* slapMode : SLAP_SERVER_MODE, SLAP_TOOL_MODE,
SLAP_TRUNCATE_MODE, SLAP_UNDEFINED_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 not in our cache, just free it */
if ( !e->e_private ) { if ( !e->e_private ) {
#ifdef SLAP_ZONE_ALLOC #ifdef SLAP_ZONE_ALLOC
...@@ -410,7 +410,7 @@ return_results: ...@@ -410,7 +410,7 @@ return_results:
bdb_cache_return_entry_rw(bdb, e, rw, &lock); bdb_cache_return_entry_rw(bdb, e, rw, &lock);
} else { } else {
if ( slapMode == SLAP_SERVER_MODE ) { if ( slapMode & SLAP_SERVER_MODE ) {
*ent = e; *ent = e;
/* big drag. we need a place to store a read lock so we can /* 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 * release it later?? If we're in a txn, nothing is needed
......
...@@ -271,7 +271,7 @@ int mdb_entry_release( ...@@ -271,7 +271,7 @@ int mdb_entry_release(
SLAP_TRUNCATE_MODE, SLAP_UNDEFINED_MODE */ SLAP_TRUNCATE_MODE, SLAP_UNDEFINED_MODE */
mdb_entry_return( op, e ); mdb_entry_return( op, e );
if ( slapMode == SLAP_SERVER_MODE ) { if ( slapMode & SLAP_SERVER_MODE ) {
OpExtra *oex; OpExtra *oex;
LDAP_SLIST_FOREACH( oex, &op->o_extra, oe_next ) { LDAP_SLIST_FOREACH( oex, &op->o_extra, oe_next ) {
if ( oex->oe_key == mdb ) { if ( oex->oe_key == mdb ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment