From 91c23cbc4d58781a79d8c7f5d125e559a7748413 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 9 Apr 2008 00:12:08 +0000 Subject: [PATCH] ITS#5455 be sure to reset bei_finders / bei_state --- servers/slapd/back-bdb/cache.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index ff512977bc..065c6d25cb 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -964,12 +964,12 @@ load1: } #endif } - bdb_cache_entryinfo_lock( *eip ); - (*eip)->bei_finders--; - if ( load ) - (*eip)->bei_state ^= CACHE_ENTRY_LOADING; - bdb_cache_entryinfo_unlock( *eip ); } + bdb_cache_entryinfo_lock( *eip ); + (*eip)->bei_finders--; + if ( load ) + (*eip)->bei_state ^= CACHE_ENTRY_LOADING; + bdb_cache_entryinfo_unlock( *eip ); } } if ( flag & ID_LOCKED ) { -- 2.39.5