From: Luke Howard Date: Mon, 15 Aug 2005 11:27:42 +0000 (+0000) Subject: Make sure we release entry lock before sending paged response X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~701 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f68a2b166341afdfdff091694020e22845df56bb;p=openldap Make sure we release entry lock before sending paged response --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index a7525be1d8..12d7ea3eb6 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -850,6 +850,12 @@ fetch_entry_retry: if ( get_pagedresults(op) > SLAP_CONTROL_IGNORED ) { if ( rs->sr_nentries >= ((PagedResultsState *)op->o_pagedresults_state)->ps_size ) { +#ifdef SLAP_ZONE_ALLOC + slap_zn_runlock(bdb->bi_cache.c_zctx, e); +#endif + bdb_cache_return_entry_r( bdb->bi_dbenv, + &bdb->bi_cache, e, &lock ); + e = NULL; send_paged_response( op, rs, &lastid, tentries ); goto done; }