From 4c760dfc18adc28bf6eed96452c7474aa64bf53d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 22 Feb 2003 12:39:49 +0000 Subject: [PATCH] Fix? For bdb_cache_find_entry*, COMMITTED entries are usable, not just READY entries. This change eliminates a retry bottleneck, and looks safe to me, but please review. --- servers/slapd/back-bdb/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index ad98106a69..ef753b29e1 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -794,7 +794,7 @@ try_again: /* * entry is deleted or not fully created yet */ - if ( state != CACHE_ENTRY_READY ) { + if ( state != CACHE_ENTRY_READY && state != CACHE_ENTRY_COMMITTED ) { assert(state != CACHE_ENTRY_UNDEFINED); /* free cache read lock */ @@ -889,7 +889,7 @@ try_again: /* * entry is deleted or not fully created yet */ - if ( state != CACHE_ENTRY_READY ) { + if ( state != CACHE_ENTRY_READY && state != CACHE_ENTRY_COMMITTED ) { assert(state != CACHE_ENTRY_UNDEFINED); -- 2.39.5