From: Howard Chu Date: Mon, 13 Nov 2006 00:24:59 +0000 (+0000) Subject: ITS#4738 provisional fix, still needs confirmation X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~478 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd95f8ab1cb9d74b69ebab80a20f6b97e18535f0;p=openldap ITS#4738 provisional fix, still needs confirmation --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index b55b8d053d..ad0cd02cc0 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -770,7 +770,9 @@ load1: #endif ep = NULL; } + bdb_cache_entryinfo_lock( *eip ); (*eip)->bei_state ^= CACHE_ENTRY_LOADING; + bdb_cache_entryinfo_unlock( *eip ); if ( rc == 0 ) { /* If we succeeded, downgrade back to a readlock. */ rc = bdb_cache_entry_db_relock( bdb->bi_dbenv, locker,