From bd95f8ab1cb9d74b69ebab80a20f6b97e18535f0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 13 Nov 2006 00:24:59 +0000 Subject: [PATCH] ITS#4738 provisional fix, still needs confirmation --- servers/slapd/back-bdb/cache.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.39.5