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.
This commit is contained in:
Howard Chu 2003-02-22 12:39:49 +00:00
parent fed4c24bea
commit 4c760dfc18

View File

@ -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);